Tuesday, May 10, 2011

Threading?

I'm in the process of changing up how chunks are stored so I can have a practically unlimited amount of them, and hence space in the world. Stuff like travelling between chunks, too, and figuring out an efficient way to do chunks that are far away.

But I'm also looking into the concept of threading. I hadn't looked into it before because I thought it was only useful for multicore systems. Apparently that was multithreading I was hearing about, where you run multiple threads simultaneously. Plain old threading is when you tell two different blocks of code to run together, taking turns with the processor. Of course, you can't have one rely on the other.

I think that will help resolve the temporary lag I was having, followed by long stretches of good processing speed. Spread the process out over time, while still allowing regular game play to go while the computer works. The only thing I'm going to have to work out is that vertex buffers ^are^ critical to drawing and hence the flow of the game, so I'll have to do something to smooth the border.

Anyway, I'll get threading worked out at some point so that I can improve practical efficiency. For now, I'm working on having a large world, and multiple textures.

No comments:

Post a Comment