mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 08:48:44 +00:00
d64594ec74
* Fix various issues with texture sync A variable called _actionRegistered is used to keep track of whether a tracking action has been registered for a given texture group handle. This variable is set when the action is registered, and should be unset when it is consumed. This is used to skip registering the tracking action if it's already registered, saving some time for render targets that are modified very often. There were two issues with this. The worst issue was that the tracking action handler exits early if the handle's modified flag is false... which means that it never reset _actionRegistered, as that was done within the Sync() method called later. The second issue was that this variable was set true after the sync action was registered, so it was technically possible for the action to run immediately, set the flag to false, then set it to true. Both situations would lead to the action never being registered again, as the texture group handle would be sure the action is already registered. This breaks the texture for the remaining runtime, or until it is disposed. It was also possible for a texture to register sync once, then on future frames the last modified sync number did not update. This may have caused some more minor issues. Seems to fix the Xenoblade flashing bug. Obviously this needs a lot of testing, since it was random chance. I typically had the most luck getting it to happen by switching time of day on the event theatre screen for a while, then entering the equipment screen by pressing X on an event. May also fix weird things like random chance air swimming in BOTW, maybe a few texture streaming bugs. * Exchange rather than CompareExchange |
||
---|---|---|
.. | ||
Range | ||
Tracking | ||
WindowsShared | ||
AddressSpaceManager.cs | ||
InvalidAccessHandler.cs | ||
InvalidMemoryRegionException.cs | ||
IRefCounted.cs | ||
IVirtualMemoryManager.cs | ||
IWritableBlock.cs | ||
MemoryAllocationFlags.cs | ||
MemoryBlock.cs | ||
MemoryConstants.cs | ||
MemoryManagement.cs | ||
MemoryManagementUnix.cs | ||
MemoryManagementWindows.cs | ||
MemoryManagerUnixHelper.cs | ||
MemoryNotContiguousException.cs | ||
MemoryPermission.cs | ||
MemoryProtectionException.cs | ||
NativeMemoryManager.cs | ||
PageTable.cs | ||
Ryujinx.Memory.csproj | ||
WritableRegion.cs |