mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
Removed obsolete timer workaround from Cocoa backend
This commit is contained in:
parent
6fb1689d02
commit
e78d88094d
1 changed files with 1 additions and 7 deletions
|
@ -35,7 +35,6 @@
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <libkern/OSAtomic.h>
|
|
||||||
|
|
||||||
#include "doomdef.h"
|
#include "doomdef.h"
|
||||||
#include "i_system.h"
|
#include "i_system.h"
|
||||||
|
@ -124,12 +123,7 @@ void* TimerThreadFunc(void*)
|
||||||
|
|
||||||
if (!s_isTicFrozen)
|
if (!s_isTicFrozen)
|
||||||
{
|
{
|
||||||
// The following GCC/Clang intrinsic can be used instead of OS X specific function:
|
__sync_add_and_fetch(&s_tics, 1);
|
||||||
// __sync_add_and_fetch(&s_tics, 1);
|
|
||||||
// Although it's not supported on all platform/compiler combination,
|
|
||||||
// e.g. GCC 4.0.1 with PowerPC target architecture
|
|
||||||
|
|
||||||
OSAtomicIncrement32(&s_tics);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
s_timerStart = I_MSTime();
|
s_timerStart = I_MSTime();
|
||||||
|
|
Loading…
Reference in a new issue