07-27-2020, 09:17 PM
Bug: Various single/multi-player maps run slower than others. This also includes graphical glitches with text and images.
Cause: There is a function used to average out the overall brightness when a player enters a dark/bright area. When the brightness is changed the slowdown occurs. This seems to affect all maps that alter brightness. Several maps do not alter brightness such as "Frostfire" and experience no slowdown or graphical issues.
Solution: Disabling this "Adjust_Brightness" function eliminates the issue. The downside to this is the dark areas will not auto-adjust. Thermal scopes on sniper rifles will not work either due to no light adjustment.
Other: Issue goes away when using OpenGL/DX9/DX11 software mode. It only happens in hardware mode.
Results from the code above playing the map "Crossroads" on PCSX2v1.6 | framelimiter OFF | OpenGL hardware mode(same issue with DX9/11)
Without code: 48fps
With code: 160fps
Cause: There is a function used to average out the overall brightness when a player enters a dark/bright area. When the brightness is changed the slowdown occurs. This seems to affect all maps that alter brightness. Several maps do not alter brightness such as "Frostfire" and experience no slowdown or graphical issues.
Solution: Disabling this "Adjust_Brightness" function eliminates the issue. The downside to this is the dark areas will not auto-adjust. Thermal scopes on sniper rifles will not work either due to no light adjustment.
Other: Issue goes away when using OpenGL/DX9/DX11 software mode. It only happens in hardware mode.
Code:
Disable Adjust_Brightness Function
2033CD68 100000DB
Results from the code above playing the map "Crossroads" on PCSX2v1.6 | framelimiter OFF | OpenGL hardware mode(same issue with DX9/11)
Without code: 48fps
With code: 160fps
Code:
Adjusted Brightness Variables [float value: 0.0 default]
00488F50
00488F54
00488F58