#Need help optimizing remote

1 messages · Page 1 of 1 (latest)

twilit stirrup
#

Im tryna lower kbs in my game
this is for client sided effects

#

this is my remote handler on the client side

#

here is the effects module

signal bobcat
#

Use buffers to make numbers faster or something

#

I think

#

Idk

twilit stirrup
#

here is what im passing

#

from the server

signal bobcat
#

Or does the data differ for different stuff

twilit stirrup
#

yeah

signal bobcat
#

Differ?

twilit stirrup
#

sometimes it can be a different effect

signal bobcat
twilit stirrup
#

no it changes too

signal bobcat
#

K

#

So what I think you should do

twilit stirrup
#

for example

#

this event

signal bobcat
#

Is turn them all into buffers

twilit stirrup
#

only takes Vector3

#

how do i turn an instance into a buffer

signal bobcat
#

And then uh

signal bobcat
#

Not familiar with buffers personally

twilit stirrup
#

i see

signal bobcat
#

Anyways

twilit stirrup
#

yea me neither

signal bobcat
#

When u receive the data

#

Decrypt the buffer

#

Based on what effect it is

#

So you know what data there is

twilit stirrup
#

Wow look

#

so definitely gotta use a string instead of a number

signal bobcat
#

Oh yea

#

Numbers are 8 bytes minimum or something weren’t they

twilit stirrup
#

That’s a nice lil optimization

#

Gonna use strings instead

#

I rather not use a buffer yk

#

Bc I don’t want the overhead

#

It might not be worth it

#

I wonder if there’s other ways to do this client side effect dtuff

#

heck yea

indigo hinge
twilit stirrup
indigo hinge
#

buffers are fast

twilit stirrup
#

so i should always use them?

#

sorry thats a bad question

#

LMAO WHAT

indigo hinge
#

buffer is 2 + buffer len bytes

twilit stirrup
#

we out here

#

oh hell nawh