Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
High CPU usage when doing camera orbit.
01-22-2021, 04:26 PM
Post: #6
RE: High CPU usage when doing camera orbit.
I tried mouse polling rate of 500Hz instead of 1000Hz, same issue. I will try again, with lower settings.

It will also try to run wings w vsync off, to see if that helps.

To really fix this problem, it would help if wings or wx could batch process a whole bunch of movements before continuing redrawing the ui.

In psuedo code:
Code:
While ( mouse move available )
    Read event
    Update mousepos
Update viewport
Draw viewport

In my own code, c and c++, I used sdl2 for io and the standard approach is to process all events until there are no more, and then update/draw a single frame.
Reply


Messages In This Thread
RE: High CPU usage when doing camera orbit. - Bram - 01-22-2021 04:26 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)