Skip to content

[Performance Optimizations] Misc Performance and CPU Optimizations #432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from

Conversation

thr3343
Copy link
Contributor

@thr3343 thr3343 commented Jun 16, 2024

Some minor performance-related patches that should help performance in game slightly
(e.g. Chunk rendering is about 5-10% faster)

  • Use faster renderpass transitions
  • Remove duplicated cmdBuffer constructor in CommandPool.class
  • Reduce Chunk rendering CPU Overhead slightly
  • Minimize native calls to waitFences via aggregated waits
  • Optimize + use more precise Sampler Stage flags
  • Reduce number of terrain pipelines generated
  • Remove Terrain AlphaCutout uniform + hardcode to 0.5f
  • Remove some unused/outdated terrain shaders/pipelines
  • Some misc spec fixes

@thr3343 thr3343 changed the title [Optimizations] Misc Performance and CPU Optimizations [Performance Optimizations] Misc Performance and CPU Optimizations Jun 16, 2024
@thr3343
Copy link
Contributor Author

thr3343 commented Jun 26, 2024

Decided to close this PR temporarily, as it will cause merge conflicts with a separate PR i'm working on (Bindless rendering)

That PR also has alot of the same optimizations this one has, so this PR is a bit redundant

So will likely reopen this again in the future without the merge conflicts + some new optimisations

@thr3343 thr3343 closed this Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant