#Viewport Idle Animations help

1 messages · Page 1 of 1 (latest)

clear lake
#

I'm implementing a viewport idle animation in my game very similar to alot of tower defenses. But the idle animations cause quite a bit of lag. Even just 4 frames and I begin getting short lag spikes. Does anyone know how Anime Vanguards and other TDs solve this?

#

TL;DR how do I optimize viewport idle animations

ruby depot
clear lake
#

I just don't know how they do it

ruby depot
#

i faced this problem a while ago, aand what I did was wrote a program to check if the frame was on the scrollingframe and load the viewport, otherwise dont

clear lake
ruby depot
#

and are the viewport animations lagging, or the whole game itself?

clear lake
#

The client is lagging. It experiences split second lag spike very few seconds

#

when i disable the viewports the lag goes away

ruby depot
#

interesting

#

i dont know what to say about this ¯_(ツ)_/¯

clear lake
# ruby depot interesting

im gonna try and split animations into tables of positions and orientations for every limb and play those like an animation. Idk if that'll reduce lag or increase it but we'll see

ruby depot
#

that should reduce it

clear lake
#

yeah probably at the very least it'll allow me to control the fps so maybe that could help

ruby depot
#

convert the animation into a keyframeanimation and then parse it into your table

clear lake
crisp thornBOT
#

studio** You are now Level 4! **studio