You are here: Reference > How To > Use optimisations tools to accelerate a composition
Use optimisations tools to accelerate a composition
It is running fast ? Could be faster.By default every parameter of every element in Smode is editable at any time. This allow good flexibility but in intern it forces Smode to assume that all parameters can be updated and sent to graphics card. To indicate to Smode that you wont animate an element you can disable editability of an element by clicking on it's locker icon.
When doing this it create a new shader chain (this can cause a small lag) and optimise the parameters which are number and choices (combo-box and check-box). Note that for the moment only theses kind of parameters are optimised all other aren't (vector), see below in green the optimised parameter when locking a Noise Mask and in red the parameter that aren't
Note that locking don't disable linked animation the variables concerned by animations are not optimised in any case!
Locking the whole compo
If you have finished your compo and showing it using (for example) a midi controller to animate it you can lock the whole compo in a single click by pushing the button LOCK.
Optimise all Boolean / Choices variables
It's also possible in Smode to force optimisation (so generate a shader at every change) for all parameters of type "Choices" (Combo Box) or "Boolean" (Check Box). To do that got to Preferences > Engine > General > Graphics Context Configuration > Inline Shader Choices.
Note that you can also use the Profiler Tool in order to see what cost a lot of resources inside your composition (red circle and square). You can also check the GPU memory and global framerate on the bottom of the screen (green square) :
Also remember That on Air, composition will but hell faster. Like if you put a NOS kit on a bicycle. But then do not forget to configure the Video Output Device to do so :
Other useful tools can be found by double clicking on the composition framerate on the bottom right of the screen. This will allow you to precisely see when is frame dropping happening or if you have any framerate changes over the time.
Only on the non free version of Smode, by doing a right clic -> Tools -> Video Profiler over a Video File you can now see precisely if anything is going wrong with the streaming of your video (and point if the issue come from disk access, buffer or else.)