Putting Brute Force to the TestI have put brute force to the test against a simple ROAM engine. I used Bryan Turner's ROAMsimple demo for this. Here's the technical info on the test: Computer: Basis for comparison: The results: Of course this is by no means a correct scientific experiment but I think it gives a reasonably good representation of the two methods. EvaluationThe graph above shows that, when the detail is equal or worse than 2.0f, brute force can be used. But there are other differences that should be taken into consideration. For example, brute force can render maps with less memory usage because no triangle lists are built every frame. Finding the exact (interpolated) height with brute force is easier than with CLOD. Maps can be bigger, and finally, brute force is easier to implement (which is very good for hobby coders like me). On the flip side, CLOD simply gives higher quality and more detailed levels, and 3D accelerators need to become much faster before brute force can do the same. In the end, the choice totally depends on the needs of your engine. ConclusionThe power of 3D accelerator cards has increased so much over the last few years that, under the right conditions, old fashioned brute force terrain rendering can be faster than CLOD algorithms. The extra CPU overhead of reducing triangles can sometimes be higher than the speed increase that you get out of it. With current technology, brute force can become faster than CLOD when the size of the triangle quads rises above approximately 1/50th of the distance to the horizon, but this value will become smaller as technology advances. Sander "Tweety" Maréchal |
|