| Volumes Of Fun http://www.volumesoffun.com/phpBB3/ |
|
| How to boost FPS? (main problem: PolyVox!) http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=206 |
Page 2 of 2 |
| Author: | Shanee [ Wed Apr 27, 2011 5:48 pm ] |
| Post subject: | Re: How to boost FPS? (main problem: PolyVox!) |
Nice, to it seems to be quite a popular request here, which I'd think is quite expectable About your suggestion, what do you mean? Something like: 1. Downsample volume. 2. Create mesh (apply scale matrix to vertex buffer) 3. IF region intersects different LOD of higher resolution: * - Create the geometry for the intersecting border using the higher resolution LoD and add the border geometry to the vertex buffer (unscaled of course) Is that your idea? Edit: I think I will experiment with this idea for now (correct me for any mistakes or anything you might want to add) though considering it's a returning request here I am confident that TransVoxel will find its way into PolyVox in the near future and then I will be ready to use it in MLE P.S. I managed to optimize the engine somewhat, rendering a map of the size of 1280 x 64 x 1280 with graphics settings on highest, no LoD or downsampling still, but will be needed for sure as complexity increases. I also found that the decimator can worked instantly if I half the size of a chunk to 32x64x32 instead of 64x64x64, problem is draw calls increase by about 4 for achieving the same size of terrain. Problem. Which gives me another reason to look into downsampling/lod/different extraction methods for lower resolution, reduced draw calls. I am aiming for a terrain with the size of 4k x 128 x 4k at a point. With a size of 32x64x32 that is way too many draw calls (unless more efficient culling/batching can be added to the terrain) and way too much geometry. Yet this is a goal for the engine to be capable of, our game we hope to have in a size of 4km (although we might need to expand it anywhere to 6k or a maximum of 8k but 4km is our goal for now). |
|
| Author: | David Williams [ Wed Apr 27, 2011 9:58 pm ] |
| Post subject: | Re: How to boost FPS? (main problem: PolyVox!) |
I don't want to tell you exactly what to do, because I haven't tried this myself and it's useful to get different perspectives on the same problem. But this is the way I imagine it:
The above doesn't actually decrease the batch count, because you have the same number of regions regardless of the LOD level. So next you might want to try making the lower LOD levels cover a larger area, so there are less of them. Also, you generally won't need all the LOD levels present at once. So you can probably generate them on demand and discard them later. |
|
| Author: | Shanee [ Thu Apr 28, 2011 3:27 am ] |
| Post subject: | Re: How to boost FPS? (main problem: PolyVox!) |
Oh, my idea is to combine 4 regions into one 64x64x64, downsampled version of all 4 (so 4 times your downsampled 32) which does reduce batching. And I usually generated the polyvox geometry when "close enough" and discard it afterwards considering how fast it is to do so anyway |
|
| Page 2 of 2 | All times are UTC |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|