mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 13:56:59 +01:00
Build the launcher on Qt below 6.6 and cap the reference-clock log (#653)
* Fix launcher build on Qt versions below 6.6 QVulkanInstance::NoPortabilityDrivers is only available since Qt 6.6, so guard its use the same way as the Apple-specific case. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Stop logging every reference-clock copy CopyData of the clock counter runs on every GPU wait, so the handler wrote one line per wait: a single SpongeBob boot that never reaches a frame logs 1312 of them, and the count grows with run time. Keep the first 64 lines for diagnostics; the copy itself is unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Remove reference-clock logging comment --------- Co-authored-by: YuhiAida <21134775+YuhiAida@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
@@ -386,8 +386,12 @@ void CommandProcessor::WriteReferenceClock(uint64_t dst_address, uint32_t num_by
|
|||||||
}
|
}
|
||||||
const auto value = Sync::ReadReferenceClock();
|
const auto value = Sync::ReadReferenceClock();
|
||||||
std::memcpy(reinterpret_cast<void*>(dst_address), &value, num_bytes);
|
std::memcpy(reinterpret_cast<void*>(dst_address), &value, num_bytes);
|
||||||
LOGF("\t copy_data reference clock: dst=0x%016" PRIx64 " value=0x%016" PRIx64 " size=%u\n",
|
static std::atomic<uint32_t> clock_log_count {0};
|
||||||
dst_address, value, num_bytes);
|
if (clock_log_count.fetch_add(1) < 64) {
|
||||||
|
LOGF("\t copy_data reference clock: dst=0x%016" PRIx64 " value=0x%016" PRIx64
|
||||||
|
" size=%u\n",
|
||||||
|
dst_address, value, num_bytes);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommandProcessor::DmaData(uint8_t engine, uint8_t dst_sel, uint8_t dst_cache_policy,
|
void CommandProcessor::DmaData(uint8_t engine, uint8_t dst_sel, uint8_t dst_cache_policy,
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ void ConfigurationEditDialog::Init(const Configuration& info) {
|
|||||||
#endif
|
#endif
|
||||||
QVulkanInstance instance;
|
QVulkanInstance instance;
|
||||||
instance.setApiVersion(QVersionNumber(1, 3, 0));
|
instance.setApiVersion(QVersionNumber(1, 3, 0));
|
||||||
#if !defined(__APPLE__)
|
#if !defined(__APPLE__) && QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
|
||||||
instance.setFlags(QVulkanInstance::NoPortabilityDrivers);
|
instance.setFlags(QVulkanInstance::NoPortabilityDrivers);
|
||||||
#endif
|
#endif
|
||||||
if (instance.create()) {
|
if (instance.create()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user