#Optimization for chunk loading
1 messages · Page 1 of 1 (latest)
ok cro im still learning
im trying actors rn
i suggest start with yield more often. actors are rather difficult to work with the first go, but voxel chunk generation is a great candidate for actors
you still need to yield for the actors anyway, so start there. your chunks may load slow, but that's what the actors are for - to make it faster
loading and unloading is the only laggy part rn so it should be fast to fix
your stated problem is frame loss, where your game freezes for a sec. the only solution to that is to do less per frame. once you've got that sorted out, actors is the way. no doubt you'll end up writing better code as you go along or iterate on your code (rewrite it), so that one is almost free 👍