Skip to content

softgpu: Reduce some flushing / flushing cost - #16054

Merged
hrydgard merged 2 commits into
hrydgard:masterfrom
unknownbrackets:softgpu-flush
Sep 19, 2022
Merged

hrydgard merged 2 commits into
hrydgard:masterfrom
unknownbrackets:softgpu-flush

Conversation

@unknownbrackets

Copy link
Copy Markdown
Collaborator

Just some small changes to reduce flushing a bit in some games. The benefit is small but goes from say 93% -> 94% in a Split/Second frame dump.

-[Unknown]

Even if X is not equal, if all Y are equal, we can still skip.
This seems to happen more often than I expected with far away objects.

Skipping here avoids filling up the queue.
Minor tweak, we sometimes try to flush even without anything to flush, and
were previously rechecking a lot of things.
@hrydgard
hrydgard enabled auto-merge September 19, 2022 15:41
@hrydgard
hrydgard merged commit 3e0b3ba into hrydgard:master Sep 19, 2022
@unknownbrackets
unknownbrackets deleted the softgpu-flush branch September 19, 2022 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants