Skip to content
Permalink
Browse files

GPU: Use unordered_map for tempFBOs.

  • Loading branch information...
unknownbrackets committed Jun 3, 2018
1 parent 8f354e5 commit 2f859425a876d42db59e0a989d6068dcff61e997
Showing with 3 additions and 3 deletions.
  1. +1 −1 GPU/Common/FramebufferCommon.cpp
  2. +2 −2 GPU/Common/FramebufferCommon.h
@@ -1100,7 +1100,7 @@ void FramebufferManagerCommon::DecimateFBOs() {
int age = frameLastFramebufUsed_ - it->second.last_frame_used;
if (age > FBO_OLD_AGE) {
it->second.fbo->Release();
tempFBOs_.erase(it++);
it = tempFBOs_.erase(it);
} else {
++it;
}
@@ -19,7 +19,7 @@

#include <set>
#include <vector>
#include <map>
#include <unordered_map>

#include "Common/CommonTypes.h"
#include "Core/MemMap.h"
@@ -412,7 +412,7 @@ class FramebufferManagerCommon {
int last_frame_used;
};

std::map<u64, TempFBOInfo> tempFBOs_;
std::unordered_map<u64, TempFBOInfo> tempFBOs_;

std::vector<Draw::Framebuffer *> fbosToDelete_;

0 comments on commit 2f85942

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.