mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 03:54:45 +00:00
Update pm4_cmds.h
This commit is contained in:
parent
1aed3d2feb
commit
ac557c1e5a
1 changed files with 1 additions and 8 deletions
|
@ -312,13 +312,6 @@ struct PM4CmdEventWriteEop {
|
|||
return data_lo | u64(data_hi) << 32;
|
||||
}
|
||||
|
||||
uint64_t GetGpuClock64() const {
|
||||
auto now = std::chrono::high_resolution_clock::now();
|
||||
auto duration = now.time_since_epoch();
|
||||
auto ticks = std::chrono::duration_cast<std::chrono::nanoseconds>(duration).count();
|
||||
return static_cast<uint64_t>(ticks);
|
||||
}
|
||||
|
||||
void SignalFence() const {
|
||||
switch (data_sel.Value()) {
|
||||
case DataSelect::None: {
|
||||
|
@ -333,7 +326,7 @@ struct PM4CmdEventWriteEop {
|
|||
break;
|
||||
}
|
||||
case DataSelect::GpuClock64: {
|
||||
*Address<u64>() = GetGpuClock64();
|
||||
// Todo
|
||||
break;
|
||||
}
|
||||
case DataSelect::PerfCounter: {
|
||||
|
|
Loading…
Add table
Reference in a new issue