Open Barafu opened 2 months ago
P.S. Can't use deferred mode because of issue #4945.
I looked carefully into the way I measure FPS. The part that I didn't measure because I thought it to be negligible - well, it wasn't. When I take it into account too I was able to localise problem more, so I updated the issue description.
Describe the bug I am trying to show some animated graphs in multiple windows at once. For a single window, the FPS is limited by display FPS, that is 165Hz. But when I open a second viewport with similar animation, the impact depends on where the window is opened. If it is on the same window, the impact is low. If, however, the window is on another monitor, which is 60Hz, FPS drops to ~20 immediately.
To Reproduce I have created a test case. The code is posted below. Compile and run in release. Observe the fps. Try commenting out
second_viewport
andthird_viewport
Expected behaviour I'd expect the FPS of two windows to drop by half + some overhead, not by 50 times.
Desktop
Demonstration Note the LOAD_FACTOR const that varies the load from drawing.