aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_embed_demo.app
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-22 10:44:34 -0500
committerDavid Robillard <d@drobilla.net>2025-01-22 18:41:29 -0500
commit90b9b63b2001c4595c08f7da5aa4403611327678 (patch)
tree1474799c81c031cf8b7accfd7e0b80671f16fe05 /examples/pugl_embed_demo.app
parent1025e874ad83b95c4f4e73bb6f966e9c80877bec (diff)
downloadpugl-90b9b63b2001c4595c08f7da5aa4403611327678.tar.gz
pugl-90b9b63b2001c4595c08f7da5aa4403611327678.tar.bz2
pugl-90b9b63b2001c4595c08f7da5aa4403611327678.zip
Windows: Avoid waiting less than a millisecond
There is API to access the minimum timer resolution, but it seems to always be 1 millisecond, which is also the unit of the MsgWaitForMultipleObjects parameter, so just avoid the fuss and hardcode this as the minimum. This should slightly reduce overhead when the main loop is running without much of a margin until the frame needs to be drawn.
Diffstat (limited to 'examples/pugl_embed_demo.app')
0 files changed, 0 insertions, 0 deletions