1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Pause physics command queue during physics processing

This commit is contained in:
Mikael Hermansson
2025-08-13 22:51:44 +02:00
parent de463e0241
commit 70979ae8bd
6 changed files with 103 additions and 66 deletions

View File

@@ -109,6 +109,9 @@ public:
#endif
#define WRITE_ACTION redraw_request();
#define ASYNC_COND_PUSH (Thread::get_caller_id() != server_thread)
#define ASYNC_COND_PUSH_AND_RET (Thread::get_caller_id() != server_thread)
#define ASYNC_COND_PUSH_AND_SYNC (Thread::get_caller_id() != server_thread)
#ifdef DEBUG_SYNC
#define SYNC_DEBUG print_line("sync on: " + String(__FUNCTION__));