[display] samples change at runtime?

Is this possible? To be clear I mean in game.project. I want to be able to let user select number of samples depending on speed of their device.

[display]
samples = 8

As a second question, is King using this feature in any of their mobile Defold games or is the performance cost generally too high?

1 Like

You cannot change this value at runtime. I’m not sure if we use this in Blossom or any of the games we have in production. @Andreas_Jirenius, do you know?

1 Like

Hi. Not as far as I know. Have never fiddled with it personally.

2 Likes

If you have an object with sharp edges that you rotate it can eliminate the jagged edges look at high enough sample rate. For 2d games, it’s less useful, but some 2d games it helps look much better. On desktop Win/OSX/Linux targets using it is probably much less of a resource cost compared to mobile to worry about using it.

Would still eventually like being able to specify this at runtime.

1 Like