Robert Beckebans
be7d912cf2
Just to be safe. Changed Sys_Yield()
2014-05-20 09:31:40 +02:00
Robert Beckebans
05248cce6d
AStyle
2014-05-20 09:29:08 +02:00
Radegast
ca5c463bbd
Added clock_gettime() for OS X which always returns monotonic time. #87
2014-05-19 16:53:20 +01:00
Radegast
764b067825
Avoid 'unknown event' spam when testing with touchpad. #87
2014-05-19 15:52:33 +01:00
Radegast
812fb78d52
Initial OS X support. #87
2014-05-18 23:14:28 +01:00
RobertBeckebans
60ccf3567b
Merge branch 'master' into glew
2014-04-25 20:24:30 +02:00
dekadenZ
e4605633f0
Move format specifier macros to idlib/sys/sys_defines.h
2014-04-25 15:22:15 +02:00
RobertBeckebans
8018378c3c
Merge branch 'master' into glew
...
Conflicts:
neo/renderer/OpenGL/glext.h
neo/renderer/OpenGL/qgl.h
neo/renderer/OpenGL/wglext.h
neo/renderer/RenderProgs.cpp
neo/renderer/RenderProgs_GLSL.cpp
neo/renderer/RenderSystem_init.cpp
neo/renderer/tr_backend_draw.cpp
neo/sys/win32/win_qgl.cpp
2014-04-21 15:01:50 +02:00
Andreas Bergmeier
4d9970b148
Properly handle format analysis
...
Rename ATTRIBUTE_PRINTF to
- ID_STATIC_ATTRIBUTE_PRINTF
- ID_INSTANCE_ATTRIBUTE_PRINTF
since for instance functions, this has to be taken into account, too.
Add format analysis to idLib, DeclManager and idTokenParser functions.
Add support for clang.
2014-02-22 17:02:06 +01:00
Robert Beckebans
7690fb4b8e
Merge branch 'master' into glew
...
Conflicts:
neo/renderer/OpenGL/glext.h
neo/renderer/RenderSystem_init.cpp
2013-12-24 15:49:06 +01:00
Daniel Gibson
88b23611f9
Fix DEBUG_THREADS on FreeBSD
...
There was a typo in an #include, furthermore FreeBSD has no
pthread_getname_np equivalent.
I added Sys_GetThreadName() so the code is a bit cleaner.
2013-06-23 19:16:23 +02:00
Robert Beckebans
db715535cc
Merged generic C++ fallbacks for SSE optimized code to allow support for non-x86 based platforms like ARM
2013-06-01 15:13:00 +02:00
Robert Beckebans
aefa4ac6e3
Merge branch 'master' into glew and fixed a crash on Intel HD drivers
2013-04-23 00:41:54 +02:00
Robert Beckebans
3023533e57
Added pthread priority code but it is disabled by default because it requires root privileges
2013-03-26 13:43:30 +01:00
Daniel Gibson
da9ab07e9c
Refactor setting threadname on POSIX systems
...
* setting threadname is now done in a seperate function
* if setting the threadname fails, it just prints a warning now
instead of terminating the game with a FatalError
2013-03-26 00:36:04 +01:00
Daniel Gibson
fe18a49303
Improve POSIX threading code
...
* setting threadname is now done in a seperate function so it's a bit
cleaner (it's different for every platform..)
* replace/refactor signaling code (based on my SDL threading branch and
the old pthread signaling code from RB):
- The interface is like on win32 now (Sys_Signal* functions instead of
overwriting idSysSignal class)
- created a custom signalHandle_t struct for that, which contains all
needed information
- Mimic Windows functions used in win32 implementation more closely,
e.g. signal all waiting threads on manualReset signalRaise, count
waiting threads etc. I'm pretty sure the behavior on Win32 and POSIX
now is identical (as far as possible).
2013-03-25 22:05:02 +01:00
Daniel Gibson
9aa63e4074
Some timer-related improvements for POSIX
...
* idSysSignal::Wait should now handle timeouts > 1s better (or at all)
* Use clock_gettime for Sys_Milliseconds()
* Use CLOCK_MONOTONIC_RAW (and CLOCK_MONOTONIC as fallback if
that's not available) for Sys_Milliseconds() and Sys_Microseconds()
CLOCK_MONOTONIC can behave strange when NTP is used
* Small fixes in Sys_Microseconds(): use 64bit int to store time
(like return type...), divide by 1000 (not 1000000) for nsec=>musec
2013-03-16 14:32:47 +01:00
Yamagi Burmeister
63b1816be6
Add an explicit cast to shut up g++47 on FreeBSD
2013-03-16 14:32:47 +01:00
Yamagi Burmeister
649577e9be
Include stddef.h for ptrdiff_t on FreeBSD
2013-03-16 14:32:46 +01:00
Yamagi Burmeister
f51688a470
Add FreeBSD defines
2013-03-16 14:32:46 +01:00
Yamagi Burmeister
da31237ed0
Replace malloc.h by stdlib.h
...
On true unices malloc.h was never available and on Linux one should
include stdlib.h instead. While this change is necessary to build
rbdoom3 on FreeBSD and other true unices, the big question is what
it means to Windows.
2013-03-16 01:38:53 +01:00
Robert Beckebans
c038a836f2
Merge branch 'master' into glew
2013-01-14 17:33:25 +01:00
Robert Beckebans
dd9b8a8710
Added support for precompiled headers for MSVC which reduced the compiled time from 4 minutes to 67 seconds.
2012-12-22 16:18:19 +01:00
Robert Beckebans
865ee792c0
Disabled usage of pthread_{get,set}_name because it does not work on all Linux systems.
2012-12-22 13:15:47 +01:00
Robert Beckebans
ff531907c7
Replaced QGL with GLEW.
2012-12-17 17:30:59 +01:00
Robert Beckebans
63f9d4000f
First playable version on Linux.
2012-12-16 17:31:21 +01:00
Robert Beckebans
b7d3481f57
Fixed missing 16 byte alignment on 32 bit Linux for SSE structs.
2012-12-15 14:53:11 +01:00
Robert Beckebans
8b8cfe7d25
Small changes to pthreads.
2012-12-14 13:10:52 +01:00
Robert Beckebans
7b43a34f37
Changed idSysSignal pthread implementation to consider the manualReset parameter
2012-12-14 11:50:20 +01:00
Daniel Gibson
ee88148bd1
eliminate more longs
...
for 64bit compatibility.
2012-12-13 01:28:41 +01:00
Robert Beckebans
86deed26b8
Merged 64 bit fixes.
2012-12-12 12:11:55 +01:00
Robert Beckebans
baac8780a5
Fixed some bugs in idSysSignal.
2012-12-12 11:29:55 +01:00
Robert Beckebans
a1730fa430
Supplemented Linux backend with missing functions. -> [100%] Built target RBDoom3 on Kubuntu 12.10
2012-12-11 23:17:23 +01:00
Robert Beckebans
6d70f04cc9
Ported the Win32 threads to POSIX pthreads.
2012-12-09 01:55:59 +01:00
Robert Beckebans
3b0dabe30a
Formatted code.
2012-12-08 18:20:13 +01:00
Robert Beckebans
8812f6f0a4
Merge branch 'linux' of https://github.com/RobertBeckebans/RBDOOM-3-BFG into linux
2012-12-07 21:25:01 +01:00
Robert Beckebans
bc6d7fbb8c
Fixed wrong assert
2012-12-07 21:24:45 +01:00
Robert Beckebans
948865123d
More Linux specific fixes, especially 64 bit
2012-12-07 17:06:44 +01:00
Robert Beckebans
9cc36a111e
More Linux specific fixes. idlib compiles on Kubuntu 12.10 64 bit
2012-12-06 21:31:33 +01:00
Robert Beckebans
37a6018233
Added some macro defines for Linux.
2012-12-06 01:00:05 +01:00
Robert Beckebans
afaf66ef40
Formatted code
2012-12-04 12:11:14 +01:00
Robert Beckebans
e0c79bd2d2
More work on MinGW support.
2012-12-03 23:55:27 +01:00
Robert Beckebans
5e05fa58c3
Added Doom 3 GCC compile options.
2012-12-03 14:21:45 +01:00
Daniel Gibson
d949bc9410
Fix compiler warnings and errors in MinGW
...
many of the warnings -Wreorder and #includes with invalid path because of
case-errors (windows may not care, but linux does)
2012-12-03 09:29:14 +01:00
Robert Beckebans
b6dd24ec4e
More MinGW specific compile fixes.
2012-12-02 06:00:07 +01:00
Robert Beckebans
536de6932a
Added missing #include <stdint.h> for uinptr_t with MinGW.
2012-12-02 06:00:06 +01:00
Daniel Gibson
259f164d28
Make idlib build with MinGW
...
but it probably is buggy and still has a lot of warnings.
The rest still has errors, i.e. you can't build a doom executable with
MinGW yet
2012-12-02 06:00:05 +01:00
Robert Beckebans
f55a763ca4
Formatted code using Artistic Style for better readability.
2012-11-28 16:47:07 +01:00
Brian Harris
5016f605b8
Initial commit
2012-11-26 12:58:24 -06:00