on a very good computer this widget mostly won't lag, while spring will lag like _, its not that spring supports only one core, it does supports multi cores, but its very limited, some people will lag a lot, others won't.
yes, it is very unoptimized, but the problem, is that nobody has the time , and nobody wants to fix it.
at one second update rate, lag would increase, but not alot, to change it to one second, replace:
Code: Select all
function widget:Update()
if (Spring.GetGameFrame() % 60 < 1) then
with:
Code: Select all
function widget:Update()
if (Spring.GetGameFrame() % 30 < 1) then