Open rofl0r opened 5 years ago
I think the screen update (while quite heavy on all platforms) is somehow broken on non-Windows platforms. The root caouse of the problem is how SDL handles rendering, no calls are batched. The whole screen is usually updated by klystrack so e.g. the main view with lots of tiny rectangles is very, very heavy.
Not sure if it could be easily added that only the dirty regions are updated.
i get about 80% constant cpu usage while playing tracks. attached is the output of
perf report
my suspicion is that the screen is constantly redrawn without any sleep delays in between rendering of the single frames... rather than targeting 40 fps or so. there's also a very nervous flickering of the screen which seems to support my suspicion.