Sharsnik
September 26th, 2008, 10:33 PM
So, I have the basic set-ups for a 3D engine pretty much laid out. But, one major thing that's confusing me is how to load models in real-time.
Pre-loading everything works fine, but it takes a good 15-20s, and, as the world expands more and more data will be required.
Currently I'm only using mostly sprites (Loaded as ~2000x2000 textures), and to even load one, the application freezes for a good 2-3s.
So, what I'm curious about is; when I switch to 3D mapping, how big of map chunks should I be working in? I was thinking of about 40x40 vertex chunks...
Also, and more importantly, how can I load these without bogging down the application? Will I have to load them in a second thread, or something?
Pre-loading everything works fine, but it takes a good 15-20s, and, as the world expands more and more data will be required.
Currently I'm only using mostly sprites (Loaded as ~2000x2000 textures), and to even load one, the application freezes for a good 2-3s.
So, what I'm curious about is; when I switch to 3D mapping, how big of map chunks should I be working in? I was thinking of about 40x40 vertex chunks...
Also, and more importantly, how can I load these without bogging down the application? Will I have to load them in a second thread, or something?