vsesh
vsesh

Reputation: 165

Monogame (monoXNA) heats Phone

I have transferred the XNA project to mono. Everything works fine. But I noticed that the phone (HTC 8x) heated. native-XNA game in debug worked fine. The resolution has increased (480x800 vs 720x1280) and fps too (30 vs 55). Are there any recommendations on optimization? What are the most heavy operations ? My game is a simple 2d arkanoid and i don't understand what can heats phone.

Upvotes: 3

Views: 364

Answers (1)

elios264
elios264

Reputation: 404

You should limit your game in all devices to run at a constant frame rate to do this in Xna you need to lines:

TargetElapsedTime = TimeSpan.FromTicks(333333); //30 fps
this.IsFixedTimeStep = true;

limiting the fps from 55 to 30 will reduce the cpu work therefore no more heat,

and if that does not help check if some background threads of yours is not doing some intensive work

Upvotes: 2

Related Questions