mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-27 00:25:38 +00:00
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.
This commit is contained in:
parent
9aaa5e79d9
commit
8f3a02d859
|
@ -157,8 +157,10 @@ void Window::update(int deltaTime)
|
||||||
ss << std::fixed << std::setprecision(2) << ((float)mFrameTimeElapsed / (float)mFrameCountElapsed) << "ms";
|
ss << std::fixed << std::setprecision(2) << ((float)mFrameTimeElapsed / (float)mFrameCountElapsed) << "ms";
|
||||||
|
|
||||||
// vram
|
// vram
|
||||||
float vramUsageMb = (TextureResource::getTotalMemUsage() + Font::getTotalMemUsage()) / 1000.0f / 1000.0f;
|
float textureVramUsageMb = TextureResource::getTotalMemUsage() / 1000.0f / 1000.0f;;
|
||||||
ss << "\nVRAM: " << vramUsageMb << "mb";
|
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));
|
mFrameDataText = std::unique_ptr<TextCache>(mDefaultFonts.at(1)->buildTextCache(ss.str(), 50.f, 50.f, 0xFF00FFFF));
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#include "../Renderer.h"
|
#include "../Renderer.h"
|
||||||
#include "../Log.h"
|
#include "../Log.h"
|
||||||
#include "../views/ViewController.h"
|
#include "../views/ViewController.h"
|
||||||
|
#include "../XMLReader.h"
|
||||||
|
|
||||||
#include "../components/TextComponent.h"
|
#include "../components/TextComponent.h"
|
||||||
#include "../components/ButtonComponent.h"
|
#include "../components/ButtonComponent.h"
|
||||||
|
@ -111,6 +112,7 @@ void GuiScraperMulti::acceptResult(const ScraperSearchResult& result)
|
||||||
ScraperSearchParams& search = mSearchQueue.front();
|
ScraperSearchParams& search = mSearchQueue.front();
|
||||||
|
|
||||||
search.game->metadata = result.mdl;
|
search.game->metadata = result.mdl;
|
||||||
|
updateGamelist(search.system);
|
||||||
|
|
||||||
mSearchQueue.pop();
|
mSearchQueue.pop();
|
||||||
mCurrentGame++;
|
mCurrentGame++;
|
||||||
|
|
Loading…
Reference in a new issue