Open kd-11 opened 3 hours ago
A significant performance increase in Need for Speed Most Wanted Note: I was unsuccessful in uncapping the framerate. The exact performance increase is an unknown value.
Water no longer shakes in Saints Row: The Third, but breaks player's character textures.
In master or disabling Asynchronous Memory Manager in this PR fixes player's characters textures, but the water will shake again.
When requesting memory protection operations, enqueue the requests and handle them in batches. Applies to the texture cache only. A common issue is that when locking pages, we end up trampling on our own work (e.g upload texture 1, lock pages, upload texture 2, requires to unlock texture 1 then lock texture 1 and texture 2, etc). This can get really slow. Instead, we don't actually care about the memory protection during command recording, so freely mark the slots for protection until we have gathered everything and are ready to render. Then apply the protections in bulk. The result is a significant speedup in sensitive games though this is admittedly a rare scenario. Makes id tech 5 stop stuttering to single digit framerates.