Skip to content

Conversation

@lightningterror
Copy link
Contributor

@lightningterror lightningterror commented Nov 21, 2025

Description of Changes

GS/GL: Only issue barriers for framebuffer optimizations if needed.

Check if the state changed previous draw/pass and if not then we need to issue a barrier or render pass then to ensure writes.

Rationale behind Changes

Big speed gains for gl, optimizations.

Suggested Testing Steps

Nothing broken, many games see barrier reductions but I will only list significant ones above 900.

Test the games listed in the log, also test Time Crisis 2 if it's broken or not.
Benchmark the mentioned games with high barrier reductions mentioned below:

Ace_Combat_04_-_Shattered_Skies_SLUS-20152_20230214003004
Barriers: -1302 [1306=>4]

Avatar_-_The_Last_Airbender_SLUS-21395_20240428221833
Barriers: -999 [17716=>16717]

EA_Sports_Rugby_2004_SLES-51732_20220817213743
Barriers: -980 [1960=>980]

EoN slowdown
Barriers: -1340 [2664=>1324]

Final Fantasy XII preload frame data texture isses
Barriers: -1144 [2291=>1147]

The Getaway _PAL-M5__SCES-51159
Barriers: -1001 [2002=>1001]

Happy! Happy!! Boarders in Hokkaidou Rusutsu Resort - SHADOWS
Barriers: -911 [1823=>912]

Keroro Gunsou - Mero Mero Battle Royale_SLPS-25399_20230724102648
Barriers: -1530 [3071=>1541]

Need for Speed - Carbon_SLUS-21493_20220727201009
Barriers: -2073 [3769=>1696]

Need_for_Speed_-_Most_Wanted_Black_Edition_SLES-53857_20230808153118
Barriers: -2125 [4250=>2125]

Need for Speed - ProStreet_SLES-55002_Menu
Barriers: -1376 [2119=>743]

Need for Speed - Undercover_SLUS-21801_20230404102430
Barriers: -1064 [1957=>893]

socom slow
Barriers: -1746 [3493=>1747]

Stuntman_SLUS-20250_20230326220301
Barriers: -2026 [4053=>2027]

Transformers_Special_Edition_SLES-52388_20240618185125
Barriers: -2160 [4320=>2160]

WRC_4_SCES-52389_20230329024724
Barriers: -6603 [13473=>6870]

Log with all barrier reductions:
log.txt

Did you use AI to help find, test, or implement this issue or feature?

No.

Check if the state changed previous draw/pass and if not then we
need to issue a barrier or render pass then to ensure writes.
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