Skip to content

Commit

Permalink
chore: reserve more space for graphics debug UI
Browse files Browse the repository at this point in the history
  • Loading branch information
painfulexistence committed Jul 3, 2024
1 parent 59c26d3 commit 3e1a423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AtmosphericEngine/graphics_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void GraphicsServer::Init(Application* app)
CreateDebugVAO();
CreateScreenVAO();

debugLines.reserve(4096);
debugLines.reserve(1 << 16);
}

void GraphicsServer::Process(float dt)
Expand Down
3 changes: 3 additions & 0 deletions AtmosphericEngine/physics_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ PhysicsWorld::PhysicsWorld()

_debugDrawer = new PhysicsDebugDrawer();
_world->setDebugDrawer(_debugDrawer);
// 0: no debug
// 1: wireframe
// 14: fast wireframe
_debugDrawer->setDebugMode(1);

_timeAccum = 0.0f;
Expand Down

0 comments on commit 3e1a423

Please sign in to comment.