Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17075

FPS drops while cpu usage is fine

$
0
0

@randomCocosUser wrote:

Hello everywhone,

I'am currently doing a game using cocos2dx.
Typically is a r-type like game, you just have to shoot on every enemies.

I'm using BacthNode, TextureAtlas, and i recently added my collision detection method to the update method.
However since i did that, i get random fps drops. But in time this fps drops occurs, cpu and gpu usage are still fine.

Note that for this test, i had only 10 active sprites at the same time, and i did nothing unusual.

As you can see i get to 48 fps while i'm still at 17% of cpu usage. That's what i quite don't understand.
What is causing this fps drop ? It only last for like 5 seconds and then the game go back to 60 fps.

I also noticed that those fps drops occurs when "Thread 5" is having a pick. I'm not creating any thread so i guess it's a system thread, but it looks like it's causing problems.
I don't even know what this thread is used for.

Obviously thoses fps drops are caused by my new update method, but since my cpu / gpu are not helpless at any time, i don't get it :/

Thank you for reading
hope it will get better ^^

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>