mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #94279 from clayjohn/physics-sync-warn
Only print physics sync warning on dev builds to avoid warning spam from using `move_and_slide`
This commit is contained in:
commit
82b57201b3
@ -45,7 +45,11 @@
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
#ifdef DEV_ENABLED
|
||||
#define MAIN_THREAD_SYNC_WARN WARN_PRINT("Call to " + String(__FUNCTION__) + " causing PhysicsServer2D synchronizations on every frame. This significantly affects performance.");
|
||||
#else
|
||||
#define MAIN_THREAD_SYNC_WARN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
class PhysicsServer2DWrapMT : public PhysicsServer2D {
|
||||
|
@ -44,7 +44,11 @@
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
#ifdef DEV_ENABLED
|
||||
#define MAIN_THREAD_SYNC_WARN WARN_PRINT("Call to " + String(__FUNCTION__) + " causing PhysicsServer3D synchronizations on every frame. This significantly affects performance.");
|
||||
#else
|
||||
#define MAIN_THREAD_SYNC_WARN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
class PhysicsServer3DWrapMT : public PhysicsServer3D {
|
||||
|
Loading…
Reference in New Issue
Block a user