#Memory issue

1 messages · Page 1 of 1 (latest)

loud plinth
#

I tested my gun system by firing 500 bullets per second continuously for 43 minutes without stopping ~ 1.25M bullet.
During the test,
FPS stayed stable, but memory usage increased by about 100 MB.

My question:
Is this normal memory behavior (engine caching / GC), or does this indicate a possible memory leak that could cause issues over long play sessions?
The increase stopped after stop firing
I want to clarify that 500 bullets per second is a very high number for my game

sacred warren
loud plinth
#

after 30m of stop fireing The increase in memory consumption became 0

sacred warren
#

prob normal thennn

#

its only 100mb so i wouldnt worry

#

but just make sure to clean up

loud plinth
sacred warren
limpid cloud
sacred warren
limpid cloud
#

i dont think theres enough information here to say anything with certainty

loud plinth
# limpid cloud depends on the game

There will be no more than 10 players, most of whom will not have auto guns with 10/s firerate and I will include an option to prevent loading other players' bullets

sacred warren
#

try weak tables for absolutely no reason and pray it fixes

sacred warren
loud plinth
#

Everything related to what the player sees is on the client

limpid cloud
#

i'd ask for code but its probably too long to tell much at a glance

loud plinth
#

Perhaps I need to conduct another, longer test and provide more information. Thank you all for your help.

limpid cloud
loud plinth
#

i have 120 frame in studio

#

But I think it's being updated at 60 frames per second not 120.

spark sorrel
#

did memory usage linearly increase to ~100mb after 43 minutes?

loud plinth
#

I'll record a video next time.

limpid cloud
#

500/sec is still a lot but not as much as you think; only 8 bullets per frame

#

should be able to handle 50 bullets/frame for 3000rps

magic dove
spark sorrel
#

I imagine there is a way to look at the profiler to get an actual answer to your question, I just have no idea how

loud plinth
#

sorry for arabic

#

The translation makes the words strange

viscid crag
#

and use task.delay instead of debris

#

disconnect all connections if you have any

#

actually

#

why are u cleaning the bullets

#

????

#

are u doing physics on the bullets

#

or are u talking about shells ejected from the gun

#

if its the first case then just raycast and play a vfx

spark sorrel
swift pikeBOT
#

studio** You are now Level 13! **studio

viscid crag
#

read the whole thing before replying

#

u genuinely got some brain issues

#

do u do cframe physics on the bullets? 🥺

spark sorrel
#

you genuinely need to hop off im tired of your misinformation

viscid crag
spark sorrel
viscid crag
#

son

#

again arguing js to win

spark sorrel
#

son what?

viscid crag
#

its so over

#

iqlet

#

🥺

spark sorrel
#

If the bullets arent suppose to be objects what are they supposed to be?

viscid crag
#

rethinking that rebuttal

spark sorrel
#

what if you want physical bullets

viscid crag
#

thats different son

#

exactly

#

op didnt mention if he wanted physical bullets

#

i assumed he didnt know any better

#

nitpick better next time

spark sorrel
viscid crag
#

ohh what a day of owning larps.. i better catch some Zs

spark sorrel
#

he is obviously putting more effort into optimization than you ever have in your life

spark sorrel
#

"just use raycasts" like shut the fuck up

viscid crag
#

🤣

viscid crag
#

youre not bad youre just..

#

different

#

🥺

#

❤️‍🩹

spark sorrel
#

explain this to me

viscid crag
#

LMFAOFOAFOAOFAOFAOFADOAFODOAF

#

"yeah bro im not a skid"

spark sorrel
#

no im genuinely curious

#

id love to hear your explanation aside from "i heard it somewhere"

viscid crag
#

yes lets do cframe physics on thousands of bullets on the server

#

mmmmm

#

yesssss

#

ohhhhh yes

#

yess render and compute all of that for me server

spark sorrel
#

do you know what the fuck youre talking about?

viscid crag
#

its not hard to put two and two together son

spark sorrel
#

CFrame are coordinate frames, they are matricies that define position and rotation

#

they are nothing more nothing less

viscid crag
#

again its ok if you do cframe math for bullet motion!

#

its okay!

#

no issues!

spark sorrel
#

they have nothing to do with the fucking physics thats a totally separate thing

viscid crag
#

Sorry

#

🤣 🤣

spark sorrel
#

I see why you have issues with your parents

viscid crag
spark sorrel
#

i'd have an issue with you too

viscid crag
#

ad hominem detected

#

brr brrrr

#

:warn

#

user is mad!

spark sorrel
#

"ad hominem detected" oh god he mentioned a fallacy im defeated

viscid crag
#

show your released games son

#

whats your daily income

#

wheres your studio

#

show your portfolio

#

ohhhh

#

none of that

spark sorrel
viscid crag
#

okay sorry

viscid crag
#

its okay to larp

#

❤️❤️

spark sorrel
#

show me urs bud

viscid crag
#

6.7trillion a day

#

gg owned

spark sorrel
#

show me ur portfolio

viscid crag
#

youll get there one day

#

maybe ill hire you

#

🤔

#

ill think about it

spark sorrel
#

i wouldnt work for u

viscid crag
#

stay broke

#

🤣

spark sorrel
#

dont act like you got money

viscid crag
#

livin off that mcdonalds wage

spark sorrel
#

u broke as shit

viscid crag
spark sorrel
#

not mcdonalds

viscid crag
#

IF you say so

#

Sorry

spark sorrel
#

typically anime profile picture interaction

viscid crag
#

user is FURIOUS!