Compare My Game Before Optimization And After

I made my game starter, including creating the player, Main Menu, etc. I wasn’t focusing on optimization, I mean I was using Some Casts, And No Soft References, In This Version When I Take A Look In Map Size Of Most Blueprints I Find That The Memory Size was Over 200Mb After That I Package It ‘Version 1 Not Optimized’.

In ‘Version 2’ I Change Any Inneed Cast And Hard Reference To Interfaces And Soft References And Delete Some Useless Assets , Which made almost all Blueprints Map Size Not Reaching Over 20 MB Memory Size , After That I Package It Too.

Now The confusion has begun, I Test Both Versions And Compare the Used Resources :
Hint : " Ram = The Game + Computer Usage "

FPS :
V1 Not Optimized : 81fps
V2 Optimized : 80fps

Ram :
V1 Not Optimized : 13010MB “relatively higher”
V2 Optimized : 13000MB

Vram :
V1 Not Optimized : 5170MB
V2 Optimized : 5100MB

Load World Drop Fame :
V1 Not Optimized : 8fps
V2 Optimized : 20fps

I don’t understand why the difference is so small . Is it because I’m still at the beginning of the game? I mean, the difference appears when there are a lot of Child Actors. Probably?
I wonder where all the map size memory usage numbers went? Over 200MB Become 20MB In The Player .
I hope you share your experiences about the results of the Optimization.

2 Likes

What you have done is good, but it is only memory optimization, and so won’t really affect and FPS figures during gameplay.

Let’s imagine ( classic example ), you have a player with 20 different skins and weapons.

If you use casts and no soft refs, when your player appears in the world, they will have all skins and weapons loaded, all the time.

If you use interfaces and soft refs, the player size map will be much smaller, but if you try the game out, swap skins and weapons a bit, the amount of RAM you’re using will be very similar to the original version.

If you really want to keep the RAM down, you’ll need to load the assets when you specifically need them, and unload then afterwards.

Even after doing all that, this will not affect FPS in the game. Just because this is ( usually ) not the kind of thing affecting frame rate ). If you want to get better frame times, you’ll need to use a tool like Insights

There are some repeat offenders, foliage, being a good example etc…

2 Likes