Lua reduces FPS considerably
Moderator: Moderators
Lua reduces FPS considerably
with the new Lua enabled the framerate drops significantly when enabled, approximately 20 FPS lower (100 fps disabled, 80 fps enabled) and that's just the beginning only showing the map nothing else, imagine the fps reduction with many units present, that could well have an impact of 7 fps on heavy scenes (1/5th fps reduction everywhere), is this inevitable or maybe something could be done about it ? why Lua is so slow ?
Yes, it's true, it's most likely the use of outlined fonts causing heavy FPS reductions.
Yes, it's possible to improve on the current situation by using using pregenerated
outline font texture atlases to reduce the amount of texture context switches. This
would also have the benefit of having pixel perfect fonts, so they would be more
readable at smaller sizes. The irony is that if such a system were implemented in
lua, it might actually run faster then the equivalent rendering of outlined fonts by
the engine.
It is hard to do? No.
Is it at the top of my list? No.
Yes, it's possible to improve on the current situation by using using pregenerated
outline font texture atlases to reduce the amount of texture context switches. This
would also have the benefit of having pixel perfect fonts, so they would be more
readable at smaller sizes. The irony is that if such a system were implemented in
lua, it might actually run faster then the equivalent rendering of outlined fonts by
the engine.
It is hard to do? No.
Is it at the top of my list? No.