mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-29 12:12:48 +01:00
Quick tests on payloads
This commit is contained in:
parent
3ff00afd59
commit
98ad2d5e4c
2 changed files with 9 additions and 5 deletions
|
|
@ -152,6 +152,10 @@ struct GPU::Impl {
|
|||
|
||||
/// Tick pending requests within the GPU.
|
||||
void TickWork() {
|
||||
if (last_sync_fence.load(std::memory_order_relaxed) ==
|
||||
current_sync_fence.load(std::memory_order_relaxed)) {
|
||||
return;
|
||||
}
|
||||
std::unique_lock lck{sync_request_mutex};
|
||||
while (!sync_requests.empty()) {
|
||||
auto request = std::move(sync_requests.front());
|
||||
|
|
@ -328,7 +332,7 @@ struct GPU::Impl {
|
|||
|
||||
std::list<std::function<void()>> sync_requests;
|
||||
std::atomic<u64> current_sync_fence{};
|
||||
u64 last_sync_fence{};
|
||||
std::atomic<u64> last_sync_fence{};
|
||||
std::mutex sync_request_mutex;
|
||||
std::condition_variable sync_request_cv;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue