SimpleGame - Pause

I’d like to add a pause feature into SimpleGame… basically toggle with ‘P’… pause means it skips over simpleUpdate and rootNode.updateGeometricState(tpf, true); so it still renders, the fps runs, you can move around, and default keyboard toggles for wireframe and so forth still work, just the scene does not continue forward.

It’s been really useful for pausing the cloth action and moving in, turning on wireframe, etc.

sounds like a useful thing to add.

You need to pause the controllers also.

controllers are updated during the updateGeometricState() call for a node. (which calls updateWorldData()). He is skipping the updateGeometricState call, so the controller updates are skipped.

right, cool, then in it has gone.

One interesting side effect of this is that you can now easily see how much of your FPS is being eatten up by world updates vs. rendering…