mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
Merge pull request #17896 from hrydgard/frame-timing-struct
Frame timing struct
This commit is contained in:
13 files changed
+39
-11
No files matched your search
@@ -210,7 +210,7 @@ std::string PathBrowser::GetFriendlyPath() const {
|
||||
bool PathBrowser::GetListing(std::vector<File::FileInfo> &fileInfo, const char *filter, bool *cancel) {
|
||||
std::unique_lock<std::mutex> guard(pendingLock_);
|
||||
while (!IsListingReady() && (!cancel || !*cancel)) {
|
||||
// In case cancel changes, just sleep.
|
||||
// In case cancel changes, just sleep. TODO: Replace with condition variable.
|
||||
guard.unlock();
|
||||
sleep_ms(50);
|
||||
guard.lock();
|
||||
@@ -221,14 +221,6 @@ bool PathBrowser::GetListing(std::vector<File::FileInfo> &fileInfo, const char *
|
||||
}
|
||||
|
||||
bool PathBrowser::CanNavigateUp() {
|
||||
/* Leaving this commented out, not sure if there's a use in UWP for navigating up from the user data folder.
|
||||
#if PPSSPP_PLATFORM(UWP)
|
||||
// Can't navigate up from memstick folder :(
|
||||
if (path_ == GetSysDirectory(DIRECTORY_MEMSTICK_ROOT)) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
return path_.CanNavigateUp();
|
||||
}
|
||||
|
||||
|
||||
@@ -565,6 +565,7 @@
|
||||
<ClCompile Include="Debugger\WebSocket\SteppingSubscriber.cpp" />
|
||||
<ClCompile Include="Debugger\WebSocket\WebSocketUtils.cpp" />
|
||||
<ClCompile Include="FileSystems\BlobFileSystem.cpp" />
|
||||
<ClCompile Include="FrameTiming.cpp" />
|
||||
<ClCompile Include="HLE\KUBridge.cpp" />
|
||||
<ClCompile Include="HLE\Plugins.cpp" />
|
||||
<ClCompile Include="HLE\sceKernelHeap.cpp" />
|
||||
@@ -1151,6 +1152,7 @@
|
||||
<ClInclude Include="Debugger\WebSocket\LogBroadcaster.h" />
|
||||
<ClInclude Include="Debugger\WebSocket\SteppingBroadcaster.h" />
|
||||
<ClInclude Include="FileSystems\BlobFileSystem.h" />
|
||||
<ClInclude Include="FrameTiming.h" />
|
||||
<ClInclude Include="HLE\KernelThreadDebugInterface.h" />
|
||||
<ClInclude Include="HLE\KUBridge.h" />
|
||||
<ClInclude Include="HLE\Plugins.h" />
|
||||
|
||||
@@ -1243,6 +1243,9 @@
|
||||
<ClCompile Include="MIPS\IR\IRNativeCommon.cpp">
|
||||
<Filter>MIPS\IR</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="FrameTiming.cpp">
|
||||
<Filter>Core</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="ELF\ElfReader.h">
|
||||
@@ -2004,6 +2007,9 @@
|
||||
<ClInclude Include="MIPS\IR\IRNativeCommon.h">
|
||||
<Filter>MIPS\IR</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="FrameTiming.h">
|
||||
<Filter>Core</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\LICENSE.TXT" />
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Common/File/Path.h"
|
||||
#include "Core/Compatibility.h"
|
||||
|
||||
enum GPUCore {
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#include "Common/Profiler/Profiler.h"
|
||||
#include "Common/Log.h"
|
||||
#include "Common/TimeUtil.h"
|
||||
|
||||
#include "Core/RetroAchievements.h"
|
||||
#include "Core/CoreParameter.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/HW/Display.h"
|
||||
#include "Core/FrameTiming.h"
|
||||
|
||||
FrameTiming g_frameTiming;
|
||||
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
struct FrameTiming {
|
||||
|
||||
};
|
||||
|
||||
extern FrameTiming g_frameTiming;
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "Core/Config.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/CoreParameter.h"
|
||||
#include "Core/FrameTiming.h"
|
||||
#include "Core/Reporting.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/System.h"
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
#include "Core/ConfigValues.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/FileLoaders/DiskCachingFileLoader.h"
|
||||
#include "Core/FrameTiming.h"
|
||||
#include "Core/KeyMap.h"
|
||||
#include "Core/Reporting.h"
|
||||
#include "Core/RetroAchievements.h"
|
||||
|
||||
@@ -196,6 +196,7 @@
|
||||
<ClInclude Include="..\..\Core\FileSystems\MetaFileSystem.h" />
|
||||
<ClInclude Include="..\..\Core\FileSystems\VirtualDiscFileSystem.h" />
|
||||
<ClInclude Include="..\..\Core\Font\PGF.h" />
|
||||
<ClInclude Include="..\..\Core\FrameTiming.h" />
|
||||
<ClInclude Include="..\..\Core\HDRemaster.h" />
|
||||
<ClInclude Include="..\..\Core\HLE\sceNp2.h" />
|
||||
<ClInclude Include="..\..\Core\Instance.h" />
|
||||
@@ -439,6 +440,7 @@
|
||||
<ClCompile Include="..\..\Core\FileSystems\tlzrc.cpp" />
|
||||
<ClCompile Include="..\..\Core\FileSystems\VirtualDiscFileSystem.cpp" />
|
||||
<ClCompile Include="..\..\Core\Font\PGF.cpp" />
|
||||
<ClCompile Include="..\..\Core\FrameTiming.cpp" />
|
||||
<ClCompile Include="..\..\Core\HDRemaster.cpp" />
|
||||
<ClCompile Include="..\..\Core\HLE\sceNp2.cpp" />
|
||||
<ClCompile Include="..\..\Core\Instance.cpp" />
|
||||
|
||||
@@ -1137,6 +1137,7 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\Core\ConfigSettings.cpp" />
|
||||
<ClCompile Include="..\..\Core\RetroAchievements.cpp" />
|
||||
<ClCompile Include="..\..\Core\FrameTiming.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="pch.h" />
|
||||
@@ -1800,6 +1801,7 @@
|
||||
<ClInclude Include="..\..\Core\ConfigSettings.h" />
|
||||
<ClInclude Include="..\..\Core\Debugger\WebSocket\ClientConfigSubscriber.h" />
|
||||
<ClInclude Include="..\..\Core\RetroAchievements.h" />
|
||||
<ClInclude Include="..\..\Core\FrameTiming.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\ext\gason\LICENSE">
|
||||
|
||||
@@ -479,6 +479,7 @@ EXEC_AND_LIB_FILES := \
|
||||
$(SRC)/Core/ConfigSettings.cpp \
|
||||
$(SRC)/Core/CoreTiming.cpp \
|
||||
$(SRC)/Core/CwCheat.cpp \
|
||||
$(SRC)/Core/FrameTiming.cpp \
|
||||
$(SRC)/Core/HDRemaster.cpp \
|
||||
$(SRC)/Core/Instance.cpp \
|
||||
$(SRC)/Core/KeyMap.cpp \
|
||||
|
||||
@@ -311,7 +311,7 @@ static void EmuThreadFunc() {
|
||||
// Wait for render loop to get started.
|
||||
INFO_LOG(SYSTEM, "Runloop: Waiting for displayInit...");
|
||||
while (!graphicsContext || graphicsContext->GetState() == GraphicsContextState::PENDING) {
|
||||
sleep_ms(20);
|
||||
sleep_ms(5);
|
||||
}
|
||||
|
||||
// Check the state of the graphics context before we try to feed it into NativeInitGraphics.
|
||||
@@ -1311,7 +1311,7 @@ extern "C" void JNICALL Java_org_ppsspp_ppsspp_NativeActivity_requestExitVulkanR
|
||||
}
|
||||
exitRenderLoop = true;
|
||||
while (renderLoopRunning) {
|
||||
sleep_ms(10);
|
||||
sleep_ms(5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -667,6 +667,7 @@ SOURCES_CXX += \
|
||||
$(COREDIR)/HW/SasReverb.cpp \
|
||||
$(COREDIR)/HW/StereoResampler.cpp \
|
||||
$(COREDIR)/Compatibility.cpp \
|
||||
$(COREDIR)/FrameTiming.cpp \
|
||||
$(COREDIR)/Loaders.cpp \
|
||||
$(COREDIR)/MIPS/JitCommon/JitCommon.cpp \
|
||||
$(COREDIR)/MIPS/JitCommon/JitState.cpp \
|
||||
|
||||
Reference in new issue
Block a user