Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

It seems rendering blueprints is needlessly slow as they are probably drawn even if they are offscreen

Open Godde opened this issue 8 years ago • 3 comments

When rendering 1310 blueprints of Wind Generators I get 25 FPS. https://imgur.com/2j3IjIz.png

Without rendering blueprints I get like 211 FPS. https://imgur.com/6bj35dz.png

Even when the camera is not near the blueprints, I get about 25 FPS. https://imgur.com/zJADkKt.png

I tried turning off the minimap and still got about 25 FPS. https://imgur.com/NFTrdi6.png

Once the wind generators have been finished I get like 120 FPS with icons. https://imgur.com/3PyL8X3.png

And I get about 33 FPS when all wind generators are rendered in view. https://imgur.com/GNE7D5a.png

From the perspective of the enemy I get about 26 FPS when all the Wind Generators are rendered. https://imgur.com/dRzg8Aj.png

And about 32 FPS when the Wind Generators are ghosted. https://imgur.com/8X3MCl1.png

And I get about 68 FPS from my enemies perspective when the Wind Generators are icons in LoS https://imgur.com/mcCKa2D.png

Godde avatar Feb 24 '18 19:02 Godde

You're drawing a lot of green lines. How is this not just that rendering models is slow and that blueprints and ghosts do not have radar icon LOD?

GoogleFrog avatar Feb 24 '18 23:02 GoogleFrog

Well I should have highlighted this more but when wrecks and units aren't actually in the view, they don't decrease the FPS nearly as much. For some reason, blueprints decrease the FPS drastically even when they aren't even in the view.

Here are like 5000 move command lines and 1340 Swifts with Icons and I still get 37 FPS. https://imgur.com/NV2RwnH.png 1310 blueprints with some additional 1310 lines between them shouldn't really decrease the FPS as much as they do, especially when they aren't even rendered on the screen. My guess is that the blueprints are actually rendered even if they are off screen.

Godde avatar Feb 25 '18 01:02 Godde

Being off screen shouldn't be very expensive. I suspect it's too do with traversing queues

ashdnazg avatar Feb 25 '18 11:02 ashdnazg