diff options
| author | Japa | 2011-08-22 14:14:04 +0000 |
|---|---|---|
| committer | Japa | 2011-08-22 14:14:04 +0000 |
| commit | e30a6661982aad7614e12e3bb66248992864d6b7 (patch) | |
| tree | c39f8f7c59c9b5ca544d110e2ca6a5d2cdcdd562 /MapLoading.cpp | |
| parent | 3082298368e67933947d00d005821019ded2da81 (diff) | |
| download | stonesense-e30a6661982aad7614e12e3bb66248992864d6b7.tar.gz stonesense-e30a6661982aad7614e12e3bb66248992864d6b7.tar.bz2 stonesense-e30a6661982aad7614e12e3bb66248992864d6b7.tar.xz | |
Got tile occlusion fully working.
Todo: transparent glass.
Diffstat (limited to 'MapLoading.cpp')
| -rw-r--r-- | MapLoading.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MapLoading.cpp b/MapLoading.cpp index 798fd48..76e79d5 100644 --- a/MapLoading.cpp +++ b/MapLoading.cpp @@ -932,14 +932,15 @@ void beautify_Segment(WorldSegment * segment) {
if(!segment)
return;
- TMR1_START;
+ clock_t start_time = clock();
//do misc beautification
uint32_t numblocks = segment->getNumBlocks();
for(uint32_t i=0; i < numblocks; i++){
Block* b = segment->getBlock(i);
- occlude_block(b);
+ if(config.occlusion)
+ occlude_block(b);
if(!b->visible)
continue;
@@ -1106,7 +1107,7 @@ void beautify_Segment(WorldSegment * segment) b->openborders = ~(b->floorborders|b->rampborders|b->wallborders|b->downstairborders|b->upstairborders);
}
segment->processed = 1;
- TMR1_STOP;
+ segment->beautify_time = clock() - start_time;
}
void FollowCurrentDFWindow()
|
