Questions tagged [cpu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
40
votes
3answers
9k views

Why do engines need to be optimized for new processors of the same architecture?

When a new processor generation is released, most websites report that game engines and programs need to be optimized for the new hardware. I do not quite understand why. A processor usually has an ...
0
votes
2answers
3k views

90% CPU on Profile Editor: Throttle mainMessageLoop

I have a big problem in my Unity game, in almost every scène of my game, my editor is laggy, when I record Porfile Editor / deep profile editor, here is the result: I have no idea what is this ...
0
votes
1answer
636 views

Why this simple SFML app produce such high CPU usage?

I written the following SFML.NET app. It draw a single 128x128 sprite on the screen. ...
5
votes
2answers
694 views

Should I care about CPU affinity of threads?

I am currently developing a rendering engine, which I plan to use for creating games. The engine makes heavy use of multithreading; I have a thread for OpenGL rendering, a thread for updating, a ...
0
votes
0answers
482 views

Unity / Box2D / Raycasting and Performance

Im currently using the Unity Engine and the Box2D Physics Engine. I have this line of code: ...
4
votes
4answers
270 views

Data flow with PhysX on a dedicated GPU

If there are 2 GPUs in a PC, one processing only graphics and the other dedicated to PhysX, what is the flow of the physics-related data? Let's say we're simulating an explosion and the PhysX ...
3
votes
1answer
7k views

ARMv7 vs FAT in Unity Android Build Settings (release multiple valid APKs)

If I select ARMv7 instead of FAT (ARMv7+x86) in the Android Build Settings of Unity5-Free, the APK binary drops to half size. FAT => ~20MB ARM => ~10MB (...
23
votes
3answers
8k views

Is it normal for a game to use 100% CPU?

I just implemented multi-threaded input handling in my game engine where the code that polls the OS to gather input from it and time stamps them is in a separate thread and each frame in the main ...
4
votes
1answer
3k views

CPU Usage and Available Ram in Unity 5

In Unity 5 I would like to be able to print out the CPU Usage and Available Ram left in MB. I followed the code posted on http://zamov.online.fr/EXHTML/CSharp/CSharp_927308.html and used it, however ...
0
votes
1answer
122 views

What type of loop code on game engines? [duplicate]

Recently I worked on a game on Spritekit Engine. My question is not about spritekit, but generaly about game engines. When I write a loop code and run it (eg while i< 100000) my CPU usage goes to ...
0
votes
1answer
184 views

TTF fonts are being converted to image in CPU or GPU?

Once I use a TTF font, when they are being converted to images to be rendered? Does CPU or GPU do the conversion? How heavy is that operation?