godot/platform/uwp
lawnjelly b330766c30 Fix overflow condition with QueryPerformanceCounter
The previous code for OS_Windows::get_ticks_usec() multiplied the tick count by 1000000 before dividing by ticks_per_second. The ticks is counted in a 64 bit integer and is susceptible to overflow when a machine has been running for a long period of time (days) with a high frequency timer.

This PR separates the overall calculation into one for seconds and one for the remainder, removing the possibility of overflow due to the multiplier.

(cherry picked from commit db9fa88160)
2020-06-11 09:40:04 +02:00
..
export Adding missing include guards to header files identified by LGTM. 2020-03-25 11:38:54 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
app.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
app.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
context_egl_uwp.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
context_egl_uwp.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
detect.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
joypad_uwp.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
joypad_uwp.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
logo.png
os_uwp.cpp Fix overflow condition with QueryPerformanceCounter 2020-06-11 09:40:04 +02:00
os_uwp.h Fix Android LineEdit editing bugs 2020-05-20 12:07:08 +02:00
platform_config.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
power_uwp.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
power_uwp.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
thread_uwp.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
thread_uwp.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00