Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Although the old syntax is still valid, the changes were made not only to make the code simpler to create and edit, but also to increase its performance.
The new code reduces the amount of time it takes to create a new style to a small fraction of the previous time. Since every displayable creates an associated style, this has the potential to lead to a substantial performance improvement.
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
theCodeCat wrote:I don't know the details but I pretty sure any performance increase or decrease is negligible.
Well, I also don't know he details, but the documentation isn't calling it "negligible".
The new code reduces the amount of time it takes to create a new style to a small fraction of the previous time. Since every displayable creates an associated style, this has the potential to lead to a substantial performance improvement.
But yes, if the old way works and you prefer it, go for it. The Amish prefer to live in houses with no electricity, and their houses still work.
The reason I think it's likely negligible is because creating a new style is likely a one-time occurrence that happens during the game's initialization, and it probably takes less than 1/100th of a second even when done inefficiently.
Given those time estimates, even if this new style made the creation process instantaneous, you are saving less than 1/100th of a second when the game initially boots up. With performance differences that small I think you are better off ignoring them completely.