Skip to content

Optimize starfield rendering by replacing NanoVG paths with batched vertex-based rendering#7618

Open
The-E wants to merge 1 commit into
scp-fs2open:masterfrom
The-E:fix/stupidly-expensive-stars
Open

Optimize starfield rendering by replacing NanoVG paths with batched vertex-based rendering#7618
The-E wants to merge 1 commit into
scp-fs2open:masterfrom
The-E:fix/stupidly-expensive-stars

Conversation

@The-E

@The-E The-E commented Jul 18, 2026

Copy link
Copy Markdown
Member

While working on Vulkan, I noticed that retail stars are stupidly slow; nanovg is hogging frametime a lot because it issues a lot of small draw commands - so let's batch things up a bit. This improved performance for me by a lot - in the lab, I went from ~80 FPS when looking at something with SM1-01 in the background to 120 FPS.

@wookieejedi wookieejedi added enhancement A new feature or upgrade of an existing feature to add additional functionality. cleanup A modification or rewrite of code to make it more understandable or easier to maintain. labels Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. enhancement A new feature or upgrade of an existing feature to add additional functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants