|
|
@ -46,9 +46,10 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
/// Refresh the known GPU tick
|
|
|
|
/// Refresh the known GPU tick
|
|
|
|
void Refresh() {
|
|
|
|
void Refresh() {
|
|
|
|
auto this_tick = gpu_tick.load(std::memory_order_acquire);
|
|
|
|
u64 this_tick{};
|
|
|
|
u64 counter{};
|
|
|
|
u64 counter{};
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
|
|
|
|
this_tick = gpu_tick.load(std::memory_order_acquire);
|
|
|
|
counter = semaphore.GetCounter();
|
|
|
|
counter = semaphore.GetCounter();
|
|
|
|
if (counter < this_tick) {
|
|
|
|
if (counter < this_tick) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|