Skip to content

Engine: Only poll glGetGraphicsReset() once every 100ms in handleevents()

This call acted as a bottleneck, significantly reducing the framerate on E1L1 of Duke3D as the status was being polled every single time handleevents() was called.

Now the polling is only done every 100ms, which should hopefully be frequent enough so as to not cause issues.

For comparison, on my Windows 10 machine with the following processor and GPU:

  • Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz 3.30 GHz
  • NVIDIA GeForce RTX 3060

I get the following framerate in E1L1 of Duke3D when looking at the starting scene without moving:

Before:

duke0015

After:

duke0018

Merge request reports