Files
@ r24845:fab6f86c6617
Branch filter:
Location: cpp/openttd-patchpack/source/docs/elrail_track.png
r24845:fab6f86c6617
46.0 KiB
image/png
Fix: [Win32] now we are drawing on a tick, no longer use WM_PAINT
WM_PAINT hits when-ever Windows feels like, but always after we
marked the screen as dirty. In result, it was lagging behind,
giving a sub-60fps experience.
With the new draw-tick there is no longer a need to be driven by
WM_PAINT, so it is better anyway to drive the drawing ourself. As
an added bonus this makes the win32 driver more like the others.
WM_PAINT hits when-ever Windows feels like, but always after we
marked the screen as dirty. In result, it was lagging behind,
giving a sub-60fps experience.
With the new draw-tick there is no longer a need to be driven by
WM_PAINT, so it is better anyway to drive the drawing ourself. As
an added bonus this makes the win32 driver more like the others.
![](/cpp/openttd-patchpack/source/raw/fab6f86c6617aa0b13afa05d453264a3eb4f0cba/docs/elrail_track.png)