mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 05:19:18 +01:00
Update cached buffer execution number when megabuffering
This commit is contained in:
parent
3ae1e78544
commit
4b3e906c22
@ -340,8 +340,10 @@ namespace skyline::gpu {
|
||||
return {};
|
||||
|
||||
// If the active execution has changed all previous allocations are now invalid
|
||||
if (executionNumber != lastExecutionNumber) [[unlikely]]
|
||||
if (executionNumber != lastExecutionNumber) [[unlikely]] {
|
||||
ResetMegabufferState();
|
||||
lastExecutionNumber = executionNumber;
|
||||
}
|
||||
|
||||
// If more than half the buffer has been megabuffered in chunks within the same execution assume this will generally be the case for this buffer and just megabuffer the whole thing without chunking
|
||||
if (unifiedMegaBufferEnabled || megaBufferViewAccumulatedSize > (backing.size() / 2)) {
|
||||
|
Loading…
Reference in New Issue
Block a user