why is windows so bad
This commit is contained in:
parent
5a0252d8d0
commit
1f74fa7204
@ -139,6 +139,7 @@ int main(int argc, char** argv) {
|
|||||||
//);
|
//);
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (render || tick) {
|
if (render || tick) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1)); // yield for 1ms
|
std::this_thread::sleep_for(std::chrono::milliseconds(1)); // yield for 1ms
|
||||||
} else {
|
} else {
|
||||||
@ -159,6 +160,11 @@ int main(int argc, char** argv) {
|
|||||||
));
|
));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// why is windows like this
|
||||||
|
//std::this_thread::sleep_for(std::chrono::milliseconds(1)); // yield for 1ms
|
||||||
|
SDL_Delay(1); // yield for 1ms
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user