Revision 2617,
1.1 KB
checked in by bittner, 17 years ago
(diff) |
change to USE_BIT_PVS for timing tests: Warning visualization will probably not work correctly
|
Rev | Line | |
---|
[2116] | 1 | #ifndef __PVSDEFINITIONS_H
|
---|
| 2 | #define __PVSDEFINITIONS_H
|
---|
| 3 |
|
---|
| 4 | #include "common.h"
|
---|
| 5 | #include <math.h>
|
---|
| 6 |
|
---|
| 7 | ////////////
|
---|
| 8 | //-- typedefs
|
---|
[2617] | 9 | //$$ 19.1. 2008 test for speed
|
---|
| 10 | #define USE_BIT_PVS
|
---|
[2116] | 11 |
|
---|
[2616] | 12 |
|
---|
[2116] | 13 | #ifdef USE_HASH_PVS
|
---|
| 14 |
|
---|
[2176] | 15 | //#include "HashPvs2.h"
|
---|
[2122] | 16 | #include "HashPvs.h"
|
---|
[2116] | 17 |
|
---|
[2122] | 18 | #define PVS_TYPE 0
|
---|
[2116] | 19 |
|
---|
[2122] | 20 | namespace GtpVisibilityPreprocessor {
|
---|
| 21 | typedef HashPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
| 22 | typedef HashPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
| 23 | }
|
---|
| 24 | #else
|
---|
| 25 | #ifdef USE_BIT_PVS
|
---|
[2116] | 26 |
|
---|
[2122] | 27 | #include "BitVectorPvs.h"
|
---|
[2116] | 28 |
|
---|
[2122] | 29 | #define PVS_TYPE 2
|
---|
[2117] | 30 |
|
---|
[2122] | 31 | namespace GtpVisibilityPreprocessor {
|
---|
| 32 | typedef BitVectorPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
| 33 | typedef BitVectorPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
| 34 | }
|
---|
[2116] | 35 |
|
---|
[2530] | 36 | #else // USE_VERBOSE_PVS
|
---|
[2122] | 37 | #include "Pvs.h"
|
---|
[2116] | 38 |
|
---|
[2122] | 39 | #define PVS_TYPE 1
|
---|
[2117] | 40 |
|
---|
[2122] | 41 | namespace GtpVisibilityPreprocessor {
|
---|
| 42 | typedef VerbosePvs<Intersectable *, PvsData> DefaultPvs;
|
---|
| 43 | typedef PvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
| 44 | }
|
---|
| 45 | #endif
|
---|
[2117] | 46 | #endif
|
---|
| 47 |
|
---|
| 48 | namespace GtpVisibilityPreprocessor {
|
---|
| 49 |
|
---|
[2116] | 50 | typedef PvsEntry<Intersectable *, PvsData> ObjectPvsEntry;
|
---|
| 51 |
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | #endif
|
---|
| 56 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.