Improve performance for tablet and laptop (using SSAO)

Hello, I am new to Babylon and the forum :slight_smile:

I would like to implement SSAO into my 3D viewer to achieve a somehow realistic lighting/rendering. The application will run on tablets but also laptops, so performance is key… :smiley:
I would like to know if there are any more ways for me to improve my FPS rate. I already activated close to all features that are stated in the wiki on ’ How To Optimize Your Scene’ so I think I’ll have to change the way I am using SSAO. I also considered deactivating SSAO (all post-processing) when the FPS drop too low (as shown in the Scene Optimizer Wiki Post). I know that SSAO2 is supposed to be better, but using SSAO I experienced better performance and better results (for my taste).

My question: Am I missing something that could improve my FPS? (besides shutting off SSAO, I will probably do that anyway using the Scene Optimizer. This way i can keep it when rendering the scene on a PC or strong laptop…)

Here is a Playground for a Basic Scene without SSAO or any Performance improvement:

Here is a Playground for a Basic Scene without SSAO and all the Performance improvement I can think of:

Here is a Playground for a Basic Scene with SSAO and all the Performance improvement I can think of:

Thank you in advance,
I hope i described my Problem well :slight_smile:

Hello! SSAO requires you to render the scene twice, so reducing the ratio, which is the resolution used to render, can improve FPS. @Evgeni_Popov might also have some other tips?

1 Like

Another way to make things faster is to remove SSAO and bake it into textures, if that is possible for your use case?

Regarding SSAO itself, not much can be done except reducing the ratio, as @carolhmj said.

1 Like

Thank you for the fast reply.

The layout of my scene will be variable with different Objects/Positions/Dimensions so i guess baking the shading is not an option here @Evgeni_Popov :frowning:

I’ll try reducing the SSAO ratio @carolhmj :slight_smile:

For now i implemented a simple scene optimization that reduces the resolution when the FPS drop below a threshold and also deactivates SSAO: https://playground.babylonjs.com/#WRBQCP#8

3 Likes