I have a rather complex BJS scene that I’m not able to repro on playground, but I’ve recorded a video to show what’s happening.
Essentially, when I tab away from the window playing my BJS scene, I notice a massive FPS boost, and when I focus back onto the tab (more specifically, focus/click on the canvas), I take a big FPS hit, take a look:
I can’t for the life of me figure out what the issue might be.
I thought it might have to do something with mesh picking, so I tried disabling that (scene.skipPointerMovePicking = false), also tried freezing the world matrix on meshes, but neither one had any discernible effect.
If anyone has any thoughts regarding this would be much appreciated