ed959b8da7
minor fixes: add missing arena.cpp; add required NONCOPYABLE annotation; fix UNUSED2 to work in the case of references.
...
This was SVN commit r10059.
2011-08-22 08:54:56 +00:00
6c859fc6bb
add documentation on pointer types and RESTRICT as per yesterday's meeting
...
This was SVN commit r10053.
2011-08-21 15:09:09 +00:00
509f4387d7
Fix build
...
This was SVN commit r10052.
2011-08-21 13:10:44 +00:00
881d3cebf4
lay groundwork for more efficient and flexible allocators. add new sysdep/vm that provides access to additional features on Windows (large pages, autocommit). add Pool/Arena allocators that avoid overhead and support arbitrary storage (not just the expensive virtual memory allocator in DynArray)
...
This was SVN commit r10051.
2011-08-21 11:00:09 +00:00
3eb1ed0139
(actually remove)
...
This was SVN commit r10050.
2011-08-21 10:31:23 +00:00
c26a369762
remove Bucket allocator (superseded by upcoming Arena/Pool with expandable Storage policies)
...
This was SVN commit r10049.
2011-08-21 10:30:35 +00:00
5406a68959
feature request by philip: instead of refusing to load textures larger than the OpenGL limit, ensure they have mipmaps (unless it's s3tc, which would be too expensive to recompress) and skip levels until it fits
...
This was SVN commit r10043.
2011-08-20 17:56:12 +00:00
e8f6be0bf3
Fix GCC build (only reference SIMD types when supported by the compiler (though this might not work in MSVC))
...
This was SVN commit r10025.
2011-08-17 13:41:25 +00:00
9f97610cb2
refactor: remove "wrapping" and "read" functionality for DynArray (in preparation for replacing it with template policies for more flexible Pool etc.)
...
This was SVN commit r10024.
2011-08-17 08:38:53 +00:00
609f1643d5
Fix -Wconversion warnings in simulation code.
...
Cast to smaller integer types explicitly.
Generally avoid platform-dependent types (size_t) in simulation code.
Use float versions of math.h functions, not double.
This was SVN commit r10017.
2011-08-16 11:18:32 +00:00
b9bd7ff86e
Fix signed/unsigned comparison warning
...
This was SVN commit r9972.
2011-08-06 12:31:48 +00:00
083e7a41fd
fix typo
...
This was SVN commit r9962.
2011-08-04 17:27:14 +00:00
0748c5a75e
cleanup and simplification of the really old h_mgr code.
...
replace array-of-pages data structure with demand-committed VM => allows
simple allocation of new resources without having to search for the
first free index. I suspect the cause of multiple reported bugs (refs
#860 , #899 , #915 ) was a race. Most issues are fixed, but the pool's
freelist also needs to be made thread-safe and lock-free. this has
performance and 64-bit portability implications, so I'll leave it for
later (Pool is due for some serious refactoring anyway).
please post a comment if this or similar issues persist.
This was SVN commit r9961.
2011-08-04 17:11:16 +00:00
6304797cbd
pool - safely handle zero-sized allocations ( fixes #909 )
...
snd_mgr - remove no longer needed hacks for native OpenAL
implementations
test_wdbg_sym.h - belated commit of warning fix
This was SVN commit r9944.
2011-07-31 09:42:57 +00:00
8fee3d8ef8
# New territory border rendering.
...
Add textured line overlay rendering.
Change terrain height calculations to be triangulation-dependent for
improved accuracy.
Add triangulation-dependent terrain normal function.
Support separate S/T wrap modes for textures.
Rename CVector2D_Maths since it no longer conflicts with simulation
CVector2D.
Coalesce freed chunks in vertex buffers, to avoid excessive
fragmentation.
Add some things to help debug vertex buffer allocation a little.
This was SVN commit r9929.
2011-07-30 00:56:45 +00:00
153357f640
Replaces architecture-dependent cpuid function with inline GCC assembly. Should fix #670 by eliminating nasm dependency.
...
This was SVN commit r9891.
2011-07-21 01:44:29 +00:00
15df4aa4be
OS X fix: if os_cpu_ClockFrequency reports an unknown/invalid value, measure the frequency instead; also avoid reporting invalid freqs in system_info
...
This was SVN commit r9886.
2011-07-20 08:10:36 +00:00
8da2640f5e
Fixes no-PCH build
...
This was SVN commit r9883.
2011-07-19 09:00:15 +00:00
708e9cea05
Fix looping of non-streaming sounds
...
This was SVN commit r9877.
2011-07-18 17:56:17 +00:00
b738f27283
hopefully fix non-Windows build errors
...
This was SVN commit r9875.
2011-07-18 15:25:48 +00:00
c33246d603
Fix build errors
...
This was SVN commit r9872.
2011-07-18 11:10:13 +00:00
0d23e3f333
post-alpha sync with work.
...
debug stack trace fixes, remove more asm, change CONTINUE/OK scheme to
OK/ALL_COMPLETE, fix tests
This was SVN commit r9871.
2011-07-18 09:21:56 +00:00
2d9e473483
fix for non-contiguous APIC IDs within a single package (happens on recent Intel CPUs)
...
This was SVN commit r9870.
2011-07-18 08:08:06 +00:00
aeddb5fb48
avoid warning when running a second instance and Mahaf is enabled
...
This was SVN commit r9863.
2011-07-17 19:19:33 +00:00
be3eb579d4
fix another cast runtime error
...
This was SVN commit r9861.
2011-07-17 14:48:23 +00:00
dd054c8d97
acpi: fix cast error (caught by runtime check)
...
x86_x64: simplify MSC version check
This was SVN commit r9846.
2011-07-16 17:27:07 +00:00
8eb7af4ac9
Be a bit more robust to build environment changes.
...
Reduce some module dependencies.
Clean up some unused instantiations.
This was SVN commit r9827.
2011-07-15 13:22:48 +00:00
a4637c25d0
Fix no-PCH builds
...
This was SVN commit r9786.
2011-07-08 15:07:08 +00:00
492e49da38
add support for selection and deletion of entire words in text controls (ctrl+backspace/delete/left/right) based on patch by Chakakhan/kenny (thanks!)
...
also refactored wclipboard
closes #511
This was SVN commit r9646.
2011-06-23 10:12:43 +00:00
ef4df42895
add support for .dylib on OS X based on patch by Yves (thanks!)
...
c.f.
http://www.wildfiregames.com/forum/index.php?showtopic=14173&pid=220828&st=0&#entry220828
This was SVN commit r9642.
2011-06-20 20:06:51 +00:00
266977bc78
Attempt to fix manifest problems in autobuild.
...
This was SVN commit r9607.
2011-06-09 23:16:27 +00:00
6feb143e61
OS X compile fix
...
This was SVN commit r9582.
2011-05-30 23:06:16 +00:00
ef74ad7f7b
OS X compile fix (hopefully): add definition for O_DIRECT
...
This was SVN commit r9581.
2011-05-30 21:49:33 +00:00
034881d30c
sync with work. simplify wnuma, refactor+fix topology (bugs: APIC IDs array didn't correspond to OS processor number; couldn't handle noncontiguous APIC ID field values)
...
This was SVN commit r9580.
2011-05-30 13:00:20 +00:00
f25407e7fb
Fix typo
...
This was SVN commit r9579.
2011-05-30 11:51:14 +00:00
ce647cf8e3
Add a manifest hack to fix building in VC2008+, when loading DLLs built in VC2005
...
This was SVN commit r9576.
2011-05-29 21:13:21 +00:00
c2677b4bb0
Upgrade game and build system to ENet 1.3
...
This was SVN commit r9574.
2011-05-29 20:57:28 +00:00
e3d87b0375
remove no longer necessary lowlevel wsock implementation (superseded by enet) since the delay load hook isn't compatible with a DLL packaging of enet.
...
-> cstr serialization uses lib/byte_order.h instead of htons; removed
hostname/IP from system_info (Philip agrees its utility is negligible)
This was SVN commit r9572.
2011-05-29 19:59:51 +00:00
755802d0ce
Fix build errors
...
This was SVN commit r9556.
2011-05-27 13:32:34 +00:00
34186dd017
refactor file interface. requires workspace update
...
- separate file_system_util into vfs functions (-> vfs/vfs_util) and
file_system (avoids ugly fs_util namespace prefix)
- get rid of non-portable O_BINARY_NP etc. flags
- use standard O_WRONLY etc. flags instead of LIO_WRITE; but avoid the
need for specifying O_CREAT|O_TRUNC
- only open files for aio when O_DIRECT is specified (which 0ad does
not) - avoids wasting time and security issues
- return file descriptor directly instead of via output param
- waio: safer FCB mechanism that avoids mixing descriptors between lowio
and aio
This was SVN commit r9550.
2011-05-25 10:39:13 +00:00
7600c3862b
refactor gfx detection code (interface), allow exporting from DLL (required at work)
...
This was SVN commit r9546.
2011-05-24 14:17:47 +00:00
f1a1f023df
reinstate aligned_allocator.h (required at work)
...
further fixes to preserve the last error while building error messages
somewhat more accurate NUMA factor computation
This was SVN commit r9545.
2011-05-23 14:10:45 +00:00
1075e206f7
Fix some format string errors
...
This was SVN commit r9534.
2011-05-18 19:10:36 +00:00
6539456746
Fix format string
...
This was SVN commit r9524.
2011-05-15 19:52:46 +00:00
0ea42d3185
avoid stomping on the last error while dumping stack
...
refs #849
This was SVN commit r9519.
2011-05-15 00:00:01 +00:00
45d358dd9a
add code to output both affected paths in case separators are being mixed
...
This was SVN commit r9516.
2011-05-14 20:25:32 +00:00
963960fafa
no longer warn when SetFileValidData fails, as it does on all FAT volumes (boo)
...
fixes #849
This was SVN commit r9511.
2011-05-14 10:37:42 +00:00
452670738a
fix StatusDescription (remove unnecessary and wrong cast)
...
This was SVN commit r9489.
2011-05-08 20:09:31 +00:00
9b7cdef124
ensure WHRT debug messages are always displayed (in case of compatibility trouble)
...
refs #709
This was SVN commit r9485.
2011-05-08 09:14:21 +00:00
7ed9a84252
avoid double-free when sounds are reclaimed and then freed.
...
fixes #833
This was SVN commit r9477.
2011-05-07 17:34:47 +00:00