#Help with flickering viewport frames

1 messages · Page 1 of 1 (latest)

crystal ginkgo
#

I'm trying to make cameras with viewport frames and an issue I'm having is that the viewport frames keep flickering
it also starts flickering more whenever a player is in the view

#

it might be because I keep deleting the content in it though if I didn't do that then it would get messed up

#

here's the code:

#

Help with flickering viewport frames

frozen wasp
#

hes what u can change:

1.instead of cloning the entire map every single frame (which is insanely expensive) just create it once you might have interact parts in the map but just update those and not the entire map.

2.instead of cloning each player whose is closeby what you should instead do it create a copy of the players character when they first join the game then when they get close just move that cloned character into the camera view that way you dont have to create/destroy the character every frame.

3.also again destroying everything inside the viewportframe (very expensive)

crystal ginkgo
#

I think I could make it that only a part of the map gets cloned but I don't understand how to do the things you said in 2nd and 3rd points

gloomy shuttleBOT
#

studio** You are now Level 3! **studio

frozen wasp
frozen wasp
crystal ginkgo
frozen wasp
#

not the entire map

crystal ginkgo
crystal ginkgo
frozen wasp
crystal ginkgo
#

alright I'll try to remake the code
I'll update you once I'm done :)

frozen wasp
#

goodluck bro

#

im getting off so I wont be able to respond right away

crystal ginkgo
#

alright

crystal ginkgo
#

okay I figured out on how to only clone the player once

#

it works too

crystal ginkgo
#

okay I did all that and now it's no longer flickering though I see that players are blocky and don't have accessories on them

halcyon moat
crystal ginkgo
#

how do I do that exactly?