A guide to working with the legacy client optimizations

SmartLion
Joined 16/04/2017
Posts 1,970
11:40 PM 13/03/2021
The way that bricks are drawn has been changed! For the most part, you should see a higher average frame rate that is also probably unstable depending on your game.
To take advantage of the new optimization methods you must know what they are!

Definitions

Shapes are bricks that aren't studded boxes. i.e: Flags, cylinders, ramps, vents, etc.

World model is basically a mesh representing all the simple bricks that aren't shapes. Helps greatly with performance as rendering will just use the existing world model to render out all the mostly static bricks.

Fast bricks are bricks drawn with the old rendering system. All shapes or unusually rotated bricks will always be fast bricks and won't be stored in the world model. Helps with performance on constantly moving objects! Fast bricks are much more expensive to draw than bricks staying in the world model.

Description

Simple bricks will be rendered as part of the world model unless they are fast bricks which they render separately. World model bricks can become fast bricks if they had been modified from a positional, color or scaling change unless the brick has an alpha value of 0 then the brick doesn't become a fast brick. The world model will have to be regenerated if a brick inside it changes or a simple brick gets added, this does not happen with fast bricks.

You can see even more information with F1!
Bricks: Number of bricks (both simple bricks and fast bricks)
F: Number of "fast bricks"
R: World model update indication
The indicator will flash red which means the world model had to be regenerated in the current frame. Depending on your game, if this flashes a lot then frame rates will be unstable.


[Dot] mime
Joined 21/06/2019
Posts 26,654
11:42 PM 13/03/2021
What do you think about the new client coming out? Do you think you'd be able to be on track with the new client, or will it take more time to get used to the new client due to you using the current client to develop and host your games?


[Razz] [Deleted161043]
Joined 17/11/2019
Posts 27,952
11:42 PM 13/03/2021
new client?!


LockheedMartin
Joined 17/11/2020
Posts 31,917
11:43 PM 13/03/2021
oh thank you


SmartLion
Joined 16/04/2017
Posts 1,970
11:54 PM 13/03/2021
Quote from mime , 11:42 PM 13/03/2021
What do you think about the new client coming out? Do you think you'd be able to be on track with the new client, or will it take more time to get used to the new client due to you using the current client to develop and host your games?
i won't be developing for the new client


[swag] Stealty Scorpion
Joined 25/12/2020
Posts 7
07:24 AM 14/03/2021
Thats sad:(


SmartLion
Joined 16/04/2017
Posts 1,970
12:14 AM 16/03/2021
Additional tip: Because rendering is more effective than newton's collision engine, you should disable collision on bricks for extra performance!


[Cats] FireCatMagic
Joined 19/03/2017
Posts 1,614
12:24 AM 16/03/2021
awesome sauce


SmartLion
Joined 16/04/2017
Posts 1,970
12:33 AM 16/03/2021
Quote from SmartLion , 12:14 AM 16/03/2021
Additional tip: Because rendering is more effective than newton's collision engine, you should disable collision on bricks for extra performance!
20,000 Towering bricks
Collision disabled: https://gyazo.com/0830fa21d1be77b400607c709eda123a (60 FPS)
Collision enabled: https://gyazo.com/706d957eddc571bb30682b2f76ac71c8 (5-10 FPS)


[Brick] SC3
Joined 10/03/2021
Posts 8
11:42 PM 16/03/2021
Are This About Brick Hill Studio Or The game Itself ?


SmartLion
Joined 16/04/2017
Posts 1,970
12:18 AM 17/03/2021
Quote from SC3 , 11:42 PM 16/03/2021
Are This About Brick Hill Studio Or The game Itself ?
this only applies to the client, there's no optimizations for the workshop.

1 2 3