Post a reply Post a new topic Previous topic | Next topic      Page 1 of 1   
Author Message
User avatar

Joined: 04 18, 2011 /05:33

Posts: 1958

Location: Bulgaria
 Post subject: Optimizations in Games.
PostPosted: 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.


   

User avatar
Community Veteran


Joined: 03 04, 2011 /06:16

Posts: 2255

Location: Spain
 Post subject: Re: Optimizations in Games.
PostPosted: 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.


   

User avatar

Joined: 01 13, 2011 /09:58

Posts: 4165

Location: Australia
 Post subject: Re: Optimizations in Games.
PostPosted: 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?


   

User avatar

Joined: 04 18, 2011 /05:33

Posts: 1958

Location: Bulgaria
 Post subject: Re: Optimizations in Games.
PostPosted: 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.


   



Joined: 03 04, 2011 /04:22

Posts: 392

Location: Germany
 Post subject: Re: Optimizations in Games.
PostPosted: 11 24, 2012 /08:01 

isnt the cpu that, what prepares pictures for gpu to rendering?


   

User avatar

Joined: 11 12, 2010 /07:13

Posts: 5620

Location: Ireland
 Post subject: Re: Optimizations in Games.
PostPosted: 11 25, 2012 /04:40 

IT would take quite a long time to optimize it for every available hardware out there?


   

  Previous topic | Next topic      Page 1 of 1   
Display posts from previous:  Sort by  


Jump to: