(config only) setting to disable async upscaling
This commit is contained in:
1 parent
db23cc2ffa
commit
3627731041
2 files changed
+12
-2
No files matched your search
@@ -20,6 +20,8 @@
|
||||
#include "../gui/CGuiHandler.h"
|
||||
#include "../render/IScreenHandler.h"
|
||||
|
||||
#include "../../lib/CConfigHandler.h"
|
||||
|
||||
#include <tbb/parallel_for.h>
|
||||
#include <tbb/task_arena.h>
|
||||
|
||||
@@ -264,7 +266,10 @@ SDLImageShared::SDLImageShared(const SDLImageShared * from, int integerScaleFact
|
||||
upscalingInProgress = false;
|
||||
};
|
||||
|
||||
upscalingArena.enqueue(scalingTask);
|
||||
if(settings["video"]["asyncUpscaling"].Bool())
|
||||
upscalingArena.enqueue(scalingTask);
|
||||
else
|
||||
scalingTask();
|
||||
}
|
||||
|
||||
bool SDLImageShared::isLoading() const
|
||||
|
||||
Reference in new issue
Block a user