4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
11.15k stars 862 forks source link

FPS drops significantly from 60 to 15 and continues to drop as time progresses. #6816

Open Nader-B10 opened 3 months ago

Nader-B10 commented 3 months ago

Is there an existing issue for this?

Describe the bug

The problem is that the number of frames drops significantly from 60 at the beginning of the scene to 15 and continues to drop as time progresses.

It is very likely that the problem may be due to the slider or the mask behavior .

Screenshot 2024-07-29 195247

gdevelop-game.zip

Steps to reproduce

Open the attached project file and preview it and move the slider repeatedly up or down. You will notice within a few seconds that the number of frames begins to decrease and continues to decrease significantly.

GDevelop platform

Web

GDevelop version

5.4.205

Platform info

*OS (e.g. Windows, Linux, macOS, Android, iOS)* > *OS Version (e.g. Windows 10, macOS 10.15)* > *Browser(For Web) (e.g. Chrome, Firefox, Safari)* > *Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)* >

Additional context

No response

Nader-B10 commented 3 months ago

After reviewing another game project (multiplayer) I was working on(windows version), I discovered that it was having the same problem, a significant drop in FPS over time to less than 20 FPS, even though it didn't have a slider or mask behavior :

https://drive.google.com/file/d/16KUc4cjYTu8ezPNPfKKrzi-o09826dWG/view

Screenshot 2024-07-29 204046

Nader-B10 commented 3 months ago

Ready to answer any questions or inquiries regarding the problem and provide more information if you need it.

AlexandreSi commented 2 months ago

Hi @Nader-B10, thanks for taking the time to report this issue. I'm unable to reproduce the issue with the project you attached on my macOS. To investigate the issue, you could open the developer tools, head to the Performance tab.

image

From there, you can record the game when the FPS has dropped and check from this screen if there is a step that looks longer then the others.

image

If you're not comfortable with reading this kind of graphs, you can save it and send it over.