#Spell indicator effect help

1 messages · Page 1 of 1 (latest)

cold topaz
#

Hello does anyone know how to optimally do this effect on roblox?
So basically I made my own system to get player's mouse and stuff but my current system uses pivot on range to set position of the range but it is extremely expensive and having atleast 5 player with range at once will cause dip in performance from ~120 -> ~30 FPS but I cant think of any better solution that would be easy to expanded on and performant.

VVV the effect im trying to achieve
https://www.youtube.com/watch?v=CSW_Ss0X5Xc

Available on the Unity Asset Store
http://u3d.as/NSC

Status Indicators was developed to provide more aesthetically pleasing visual communication to the player about a characters status.

Rather than having obstructive popups, show the progress of your skills, spells, and resource states in a way that flows visually with your game.

There are 11...

▶ Play video
#

This is the current system working fine

cold topaz
# cold topaz

It uses pivot to get and set position which i know is the the best thing to do

#

Especially when its doing in a heartbeat for other player and stepped for localplayer

vast ginkgo
#

make it replicate to everyone else in 30 fps while for you its 120 fps, and just place it whereever u want and just change the pos

cold topaz
#

It is still lagging crazy

vast ginkgo
#

look

#

for the client you move it

#

at 120 fps

#

but

cold topaz
#

Yeah

vast ginkgo
#

when you fire the event to the other clients

cold topaz
#

I changed to a while loop with 1/120 and 1/60

vast ginkgo
#

send it with a 30 fps

#

rate

cold topaz
#

Data sending isnt really a problem

#

Its the replication

vast ginkgo
#

im using a nice framework that allows my system to work

#

lemme try

#

to show a code snippet

#

here

#

dont copy 1 for 1

#

because i made this work for me specificly

#

also

#

forgot to mention

#

u can just tween the last position

#

to the new position

#

while keeping the 30 fps

#

because if you tween it on client

#

its smooth as butter

#

and you dont have to fire stuff too much

vast ginkgo
#

@cold topaz

#

dont mind the delaytoforward

#

its a server delay optimization thingy

#

in conclusion

#

:

#

fire the cframe 1/30 and on reciever client make it twin to the new cframe from the old one

#

I hope ts helps

#

I got an exam in 5 min

#

So

#

I won't be able to respond any further

cold topaz
#

And the performance issue is gone

glass nacelle
dark obsidian
#

also don't tackle this as a network problem

#

first worry if moving multipl eof these is the issue

#

you will definitely have to cache the object

#

and I would batch the frame info aswell

#

also send the id for spell indicator and progress of it instead of sending huge data

#

client should have the code to recreate it from data

#

and welds are the most performant ways

#

if you want to align with character automatically

#

weld from client tho

#

like the observing client

vast ginkgo
#

best way is just to tween from p1 to p2 using tweenservice, and just sending the new point

#

since you can already see the current point when you spawn in the indicator

#

i have it on 30fps

#

sending data

#

but it tweens for everyone localy