Commit 8f3a02d8 authored by Aloshi's avatar Aloshi

Save gamelist.xml after each game is scraped in multi-scrape mode.

Show more detailed breakdown of VRAM. Looks like there's a bug with duplicate fonts right now.
parent 9aaa5e79
......@@ -157,8 +157,10 @@ void Window::update(int deltaTime)
ss << std::fixed << std::setprecision(2) << ((float)mFrameTimeElapsed / (float)mFrameCountElapsed) << "ms";
// vram
float vramUsageMb = (TextureResource::getTotalMemUsage() + Font::getTotalMemUsage()) / 1000.0f / 1000.0f;
ss << "\nVRAM: " << vramUsageMb << "mb";
float textureVramUsageMb = TextureResource::getTotalMemUsage() / 1000.0f / 1000.0f;;
float fontVramUsageMb = Font::getTotalMemUsage() / 1000.0f / 1000.0f;;
float totalVramUsageMb = textureVramUsageMb + fontVramUsageMb;
ss << "\nVRAM: " << totalVramUsageMb << "mb (texs: " << textureVramUsageMb << "mb, fonts: " << fontVramUsageMb << "mb)";
mFrameDataText = std::unique_ptr<TextCache>(mDefaultFonts.at(1)->buildTextCache(ss.str(), 50.f, 50.f, 0xFF00FFFF));
}
......
......@@ -2,6 +2,7 @@
#include "../Renderer.h"
#include "../Log.h"
#include "../views/ViewController.h"
#include "../XMLReader.h"
#include "../components/TextComponent.h"
#include "../components/ButtonComponent.h"
......@@ -111,6 +112,7 @@ void GuiScraperMulti::acceptResult(const ScraperSearchResult& result)
ScraperSearchParams& search = mSearchQueue.front();
search.game->metadata = result.mdl;
updateGamelist(search.system);
mSearchQueue.pop();
mCurrentGame++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment