use oss-nvjpg for loading jpeg images (homebrew, games and themezer).

slightly faster loading on avg compared to stbi.
This commit is contained in:
ITotalJustice
2025-06-02 22:18:38 +01:00
parent 8485ff1e99
commit 4be1d48215
10 changed files with 146 additions and 43 deletions

View File

@@ -1400,6 +1400,10 @@ App::App(const char* argv0) {
curl::Init();
// this has to be init before deko3d.
nj::initialize();
m_decoder.initialize();
// get current size of the framebuffer
const auto fb = GetFrameBufferSize();
s_width = fb.size.x;
@@ -1849,6 +1853,7 @@ App::~App() {
ON_SCOPE_EXIT(appletSetCpuBoostMode(ApmCpuBoostMode_Normal));
log_write("starting to exit\n");
TimeStamp ts;
i18n::exit();
curl::Exit();
@@ -1878,6 +1883,9 @@ App::~App() {
nvgDeleteDk(this->vg);
this->renderer.reset();
m_decoder.finalize();
nj::finalize();
// backup hbmenu if it is not sphaira
if (App::GetReplaceHbmenuEnable() && !IsHbmenu()) {
NacpStruct hbmenu_nacp;
@@ -1950,6 +1958,8 @@ App::~App() {
usbHsFsExit();
}
log_write("\t[EXIT] time taken: %.2fs %zums\n", ts.GetSecondsD(), ts.GetMs());
if (App::GetLogEnable()) {
log_write("closing log\n");
log_file_exit();