Lua reduces FPS considerably

Lua reduces FPS considerably

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
monohouse

Lua reduces FPS considerably

Post by monohouse »

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 ?
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

Outlined Fonts.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

Not suprised.

But I'll wait until a dev tell us if it's true and if some optimisation will solve it or not.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

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.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Hurm. I need to learn Lua.
Post Reply

Return to “Lua Scripts”