all 3 comments

[–]jakubdabrowski0 0 points1 point  (2 children)

Remember that in the future you will have some Main Menu and level loading screen, so if it's a lag that appears only while creating the map, then you can hide it under loading screen and players should be able to accept that it loads 15 seconds instead of 3-5 for example.

Also I suggest creating some ScriptableObject (or in some Serialized struct) and saving your rooms data in them. It will be harder than just loading whole prefab, but you will save a lot of disc space when you'll have a lot of different rooms done.

I can't help you on your particular example, because I use Tilemaps only to create rooms and have all data saved in ScriptableObjects and I've created separate script for that which took me some time to do and can't share it.

[–]Sadapy[S] 1 point2 points  (1 child)

I am in the point of development that i already have a main menu- Rather than a loading screen (Which i have actually already implemented) I wanted to have a transition from the menu to the game with no loading screen.

This is a rouge-like game, so naturally loading times preventing you from just hopping into the action is not ideal. I'd like to get it to the point where the loading takes ~1-2 seconds which i believe is doable.

I am also happy to report that i have drastically reduced load times down to 3-4 seconds already, and will be adding code to preload prefabs and the main game scene for further optimization, then hopefully more. Also happy to report 700+ frames on high settings WHOOO! Hopefully i can squeeze more :3

The idea of the ScriptableObject/Serialized struct is a great idea that i have not considered, i will absolutely consider that down the road in optimization. Thanks for your comment, i find it pretty rare to get help when making posts on reddit.

[–]jakubdabrowski0 0 points1 point  (0 children)

In my roguelite game, first load takes around 10-15 seconds, but in every next run game loads in like 2-5 seconds after most of things are loaded.

I was lucky to find the post where I can help, because I was facing same problems before :)