PDA

View Full Version : Syncronization for what?



KRONOS
06-11-2002, 01:51 PM
I came with this problem when implementing NV occlusing test. We should ask for a test, do sometihng else and after that see if the results are available. But what if I don't have nothing to do? I mean, occlusing should be the first thing to do right? So, not taking advantage of this feature, what's better? To do my own occlusion tests or let the card do it even asking the result imediatly?

dorbie
06-11-2002, 02:02 PM
You have to occlusion test against SOMETHING.

You should interleave real drawing with occlusion testing. For example:

test1
test2
test3
if 1 draw1
test4
if 2 draw2
test5
if 3 draw3
test6
if 4 draw4
test7
if 5 draw5
test8
etc.

This is only worth doing in some circumstances, sometimes the savings aren't worth the overhead. It depends on how fill limited you are, how complex your geometry is and how much stuff fails the occlusion test.

KRONOS
06-11-2002, 04:12 PM
For example, in an octree, if test 1 fails, no need to make test2...