mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Make the Vulkan GPU log profiler a runtime developer setting.
I keep forgetting to disable the define on commit, this is a better solution.
This commit is contained in:
1 parent
748b8287a6
commit
df2f0df155
10 files changed
+28
-18
No files matched your search
@@ -516,7 +516,7 @@ void VulkanRenderManager::ThreadFunc() {
|
||||
VLOG("PULL: Quitting");
|
||||
}
|
||||
|
||||
void VulkanRenderManager::BeginFrame(bool enableProfiling) {
|
||||
void VulkanRenderManager::BeginFrame(bool enableProfiling, bool enableLogProfiler) {
|
||||
VLOG("BeginFrame");
|
||||
VkDevice device = vulkan_->GetDevice();
|
||||
|
||||
@@ -584,11 +584,7 @@ void VulkanRenderManager::BeginFrame(bool enableProfiling) {
|
||||
WARN_LOG(G3D, "BeginFrame while !run_!");
|
||||
}
|
||||
|
||||
#if defined(VULKAN_PROFILER_ENABLED)
|
||||
vulkan_->BeginFrame(GetInitCmd());
|
||||
#else
|
||||
vulkan_->BeginFrame(VK_NULL_HANDLE);
|
||||
#endif
|
||||
vulkan_->BeginFrame(enableLogProfiler ? GetInitCmd() : VK_NULL_HANDLE);
|
||||
|
||||
insideFrame_ = true;
|
||||
renderStepOffset_ = 0;
|
||||
|
||||
Reference in new issue
Block a user