Vulkan: Semi-gross hack that massively improves the perf of MGS2:Acid.

This commit is contained in:
Henrik Rydgård committed 2018-04-13 17:32:56 +02:00
1 parent 81276c8862
commit 413a204138
8 files changed
+111 -5

No files matched your search

+1 -1
View File
@@ -472,6 +472,7 @@ void GLRenderManager::Run(int frame) {
auto &initStepsOnThread = frameData_[frame].initSteps;
// queueRunner_.LogSteps(stepsOnThread);
queueRunner_.RunInitSteps(initStepsOnThread);
initStepsOnThread.clear();
// Run this after RunInitSteps so any fresh GLRBuffers for the pushbuffers can get created.
for (auto iter : frameData.activePushBuffers) {
@@ -481,7 +482,6 @@ void GLRenderManager::Run(int frame) {
queueRunner_.RunSteps(stepsOnThread);
stepsOnThread.clear();
initStepsOnThread.clear();
for (auto iter : frameData.activePushBuffers) {
iter->MapDevice(bufferStrategy_);