| Author |
Message |
 |
armdve
Joined: 04 18, 2011 /05:33
Posts: 1958
Location: Bulgaria
|
|
Post subject: Optimizations in Games. Posted: 11 23, 2012 /08:34 |
|
Just wanted to share my thoughts on performance of games in general. You see, when any program is released, it's compiled with the most general of options so it works on the platform it was compiled for, e.g x86,x64,ARM etc.
But the size of the code can be reduced as well as optimized. As such, you may get 10-20 FPS more with just with juts switching on a bunch of CPU specific compiler switches(GPU doesn't count here).
For instance, I tried to run Crysis 2 on a P4 machine, by the time Multiplayer loaded, the game was over. Had it been compiled with the P4 architecture in mind, there could(and I emphasize on 'could') have been a significant performance increase, but at the same time, that particular code would've(or might have) performed bad on an AMD chip, and would still be limited by the GPU.
This is why these practices are not utilized in commercial applications as you'd need to redistribute the binaries for each architecture which is costly, and bandwidth consuming(and time consuming for a developer).
Oh yeah, almost forgot. Code with no changes that was compiled for x86-64 could literally be twice as fast as opposed to it's x86 counterpart, not counting the maximum memory it could allocate would increase far beyond what 32-bit addressing offers, again, just the CPU side.
Just my 2 perhaps pointless cents.
|
|
|
|
|
 |
Rukumouru
Community Veteran
Joined: 03 04, 2011 /06:16
Posts: 2255
Location: Spain
|
|
Post subject: Re: Optimizations in Games. Posted: 11 23, 2012 /09:12 |
|
I have absolutely no idea what the point of this post was.
I don't mean this in an offensive way: I honestly do not know.
|
|
|
|
|
 |
M4dn3ss
Joined: 01 13, 2011 /09:58
Posts: 4165
Location: Australia
|
|
Post subject: Re: Optimizations in Games. Posted: 11 24, 2012 /03:48 |
|
On a side note why does it seem that Crysis 2 is so CPU-bound? Is it just poor optimization on the developers' part or what?
|
|
|
|
|
 |
armdve
Joined: 04 18, 2011 /05:33
Posts: 1958
Location: Bulgaria
|
|
Post subject: Re: Optimizations in Games. Posted: 11 24, 2012 /04:10 |
|
If you look at Task Manager you would notice that it spawns around 50 threads. Now, most of these probably sleep a lot, whereas others don't, but still...50 threads all doing something at the same time, it's bound to be CPU-intensive at some point.
|
|
|
|
|
|
Nev0sIs(TR)
Joined: 03 04, 2011 /04:22
Posts: 392
Location: Germany
|
|
Post subject: Re: Optimizations in Games. Posted: 11 24, 2012 /08:01 |
|
isnt the cpu that, what prepares pictures for gpu to rendering?
|
|
|
|
|
 |
DanTheGamer11
Joined: 11 12, 2010 /07:13
Posts: 5620
Location: Ireland
|
|
Post subject: Re: Optimizations in Games. Posted: 11 25, 2012 /04:40 |
|
IT would take quite a long time to optimize it for every available hardware out there?
|
|
|
|
|