thrice Posted June 1, 2017 Share Posted June 1, 2017 After updating my project to use 3.0 last night, I am seeing a huge FPS dropoff. My (less powerfull) laptop is currently using my 2.5 version, iMac using 3.0 , to compare the two side by side to look for issues. Basically: 2.5 version renders at 30ish FPS on laptop 3.0, 0.6 FPS, consistently The only thing different I noticed in the engine info, is the currentBufferPointers in the 3.0 version has 15 null objects, whereas in 2.5, it's all filled out with actual objects. Could this somehow be related? Additional info: I'm building a card game, and rendering a large amount of planes/materials (700ish ATM), however, having no issues in 2.5 One thing I am doing that may be related (but I'm not sure what would have changed to cause the issue), is rendering all the hover states of the cards off the screen, in advance. When I comment out the hover states portion of my application, I can get FPS up to 20. I'm not exactly sure, but it almost seems like in 2.5 version, Babylon is being smart about not rendering the objects outside of the field of view? Also, I've noticed that when I enable the camera within my app and start to look around (so the whole stack of the hover states comes into view for instance), things start to get laggy. My other suspicion is: I am building an angular library wrapper which I am using within my project, which requires me to lazy load objects as it parses the dom structure. So point is, when iterating through the 120+ cards on application load, it's doing quite a bit of work the first time it renders. Was there anything added or changed in 3.0 related to how the FPS gets measured, or related to controlling how often the render loop fires? (pardon my ignorance if that isn't how the render loop works at all). So to clarify: I'm wondering if somehow the framework is detecting that the scene is busy, and since it is always busy on first load, it uses that as a benchmark as to how often it thinks it will be able to render, and then throttles the render loop accordingly? Quote Link to comment Share on other sites More sharing options...
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.