fort Posted November 3, 2017 Share Posted November 3, 2017 Hey! I'm using NullEngine on a server to check for certain conditions in a physics-enabled scene (using deterministic lockstep). As a simple example, I'm trying to find the specific step ID where a specific ball's y position falls below 0. My question is this: how should I set up the engine/scene/etc. in order to run these server-side simulations at the highest possible fps? Keep in mind that I want to be able to derive a list of step IDs on the server that correspond with specific events (re: ball.position.y < 0), and then have that same exact scene play in a browser with the same exact events matching the same exact step IDs. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 3, 2017 Share Posted November 3, 2017 by default the nullEngine runs at 60 fps if you run it with runRenderLoop but you are free to call scene.render() as fast as you can to get the fastest rendering possible fort 1 Quote Link to comment Share on other sites More sharing options...
fort Posted November 3, 2017 Author Share Posted November 3, 2017 Okay, cool. That's what I was thinking, but there's nothing like a sanity check. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.