2d engine optimisation

  1. What do you want to achieve? Keep it simple and clear!
    I want to make a 2d map for a 2d game but I want to know what’s the cheapest way to do this.

  2. What is the issue? Include screenshots / videos if possible!
    I don’t know too much about optimisation, is it the best to make a viewportframe with alot of parts inside of it or should I go with a map all made of different frames and imagelabels?

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve searched for this but couldn’t find anything related to 2d maps + optimisation. I have a gaming rig myself so I can’t really feel the difference. But low-end hardware users can probably feel the difference. I know I optimise my code as good as I can so that possibly won’t cause lag.

So to conclude, I want to know what’s the best way to draw a 2d map without the user gaining “lag”. I know a viewportframe 2d simulation won’t be that complex to make as Roblox is a 3d engine and I can just set the fov very low. But I really want to make my own engine in 2d or at least simulate 2d without users having any problems playing them. >_>

1 Like

I think it’s easiest to just make the camera view from top and customize the map for that

1 Like

I am not searching for ease, I am searching for optimisation. I don’t know what’s the best way but as Roblox is a 3d engine, that could be probably the way to do it. I am not quite sure though. If I do that, I probably have to just put the camera’s .CFrame high above the player’s root position, put the .FieldOfView low and also don’t forget to set the Camera’s .Focus a little above the character so the parts being viewed don’t disappear from rendering.

But I prefer to first know what’s the cheapest way to make this possible. I am open for a challenge and it doesn’t need to be easy.

I just don’t know what’s the cheapest way. I can’t really test much on this high-end pc.

1 Like

it is actually the cheapest way you can do it
i used that technique for a test game

i tried playing it on a bad computer and it works well

1 Like

Thanks, I’m going to redo my game and use this simple way instead of ways I used to do before like in this game

1 Like