1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 04:05:11 +00:00
serenity/Ports/openttd/patches/perf-timer.patch
Gunnar Beutner 03f4c48de1 Ports: Disable GetPerformanceTimer() for OpenTTD
OpenTTD calls gettimeofday() so many times per second that the
game becomes unusable after joining a reasonably active network
game.
2021-05-01 09:02:57 +02:00

15 lines
650 B
Diff

diff -Naur openttd-1.11.0/src/framerate_gui.cpp openttd-1.11.0.serenity/src/framerate_gui.cpp
--- openttd-1.11.0/src/framerate_gui.cpp 2021-04-29 23:45:25.247427868 +0200
+++ openttd-1.11.0.serenity/src/framerate_gui.cpp 2021-04-29 23:41:57.679926623 +0200
@@ -222,8 +222,9 @@
*/
static TimingMeasurement GetPerformanceTimer()
{
- using namespace std::chrono;
- return (TimingMeasurement)time_point_cast<microseconds>(high_resolution_clock::now()).time_since_epoch().count();
+ //using namespace std::chrono;
+ //return (TimingMeasurement)time_point_cast<microseconds>(high_resolution_clock::now()).time_since_epoch().count();
+ return 0;
}