History

replace uint64_t with quint64 for Qt friendlyness

Stephen Birarda committed 12 years ago

Commit cda06d11 parent 7b4921e57 files · +347 −347Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 57 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+10−10
@@ -638,8 +638,8 @@ void VoxelSystem::setupNewVoxelsForDrawing() { · 637 unmodified lines
638638 return; // bail early if we're not initialized
639639 }
640640
641− uint64_t start = usecTimestampNow();
642− uint64_t sinceLastTime = (start - _setupNewVoxelsForDrawingLastFinished) / 1000;
641+ quint64 start = usecTimestampNow();
642+ quint64 sinceLastTime = (start - _setupNewVoxelsForDrawingLastFinished) / 1000;
643643
644644 bool iAmDebugging = false; // if you're debugging set this to true, so you won't get skipped for slow debugging
645645 if (!iAmDebugging && sinceLastTime <= std::max((float) _setupNewVoxelsForDrawingLastElapsed, SIXTY_FPS_IN_MILLISECONDS)) {
@@ -685,7 +685,7 @@ void VoxelSystem::setupNewVoxelsForDrawing() { · 39 unmodified lines
685685
686686 _bufferWriteLock.unlock();
687687
688− uint64_t end = usecTimestampNow();
688+ quint64 end = usecTimestampNow();
689689 int elapsedmsec = (end - start) / 1000;
690690 _setupNewVoxelsForDrawingLastFinished = end;
691691 _setupNewVoxelsForDrawingLastElapsed = elapsedmsec;
@@ -702,8 +702,8 @@ void VoxelSystem::setupNewVoxelsForDrawingSingleNode(bool allowBailEarly) { · 10 unmodified lines
702702 PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
703703 "setupNewVoxelsForDrawingSingleNode() xxxxx");
704704
705− uint64_t start = usecTimestampNow();
706− uint64_t sinceLastTime = (start - _setupNewVoxelsForDrawingLastFinished) / 1000;
705+ quint64 start = usecTimestampNow();
706+ quint64 sinceLastTime = (start - _setupNewVoxelsForDrawingLastFinished) / 1000;
707707
708708 bool iAmDebugging = false; // if you're debugging set this to true, so you won't get skipped for slow debugging
709709 if (allowBailEarly && !iAmDebugging &&
@@ -728,7 +728,7 @@ void VoxelSystem::setupNewVoxelsForDrawingSingleNode(bool allowBailEarly) { · 18 unmodified lines
728728
729729 _bufferWriteLock.unlock();
730730
731− uint64_t end = usecTimestampNow();
731+ quint64 end = usecTimestampNow();
732732 int elapsedmsec = (end - start) / 1000;
733733 _setupNewVoxelsForDrawingLastFinished = end;
734734 _setupNewVoxelsForDrawingLastElapsed = elapsedmsec;
@@ -737,14 +737,14 @@ void VoxelSystem::setupNewVoxelsForDrawingSingleNode(bool allowBailEarly) { · 2 unmodified lines
737737 void VoxelSystem::checkForCulling() {
738738
739739 PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), "checkForCulling()");
740− uint64_t start = usecTimestampNow();
740+ quint64 start = usecTimestampNow();
741741
742742 // track how long its been since we were last moving. If we have recently moved then only use delta frustums, if
743743 // it's been a long time since we last moved, then go ahead and do a full frustum cull.
744744 if (isViewChanging()) {
745745 _lastViewIsChanging = start;
746746 }
747− uint64_t sinceLastMoving = (start - _lastViewIsChanging) / 1000;
747+ quint64 sinceLastMoving = (start - _lastViewIsChanging) / 1000;
748748 bool enoughTime = (sinceLastMoving >= std::max((float) _lastViewCullingElapsed, VIEW_CULLING_RATE_IN_MILLISECONDS));
749749
750750 // These has changed events will occur before we stop. So we need to remember this for when we finally have stopped
@@ -766,7 +766,7 @@ void VoxelSystem::checkForCulling() { · 15 unmodified lines
766766 hideOutOfView(forceFullFrustum);
767767
768768 if (forceFullFrustum) {
769− uint64_t endViewCulling = usecTimestampNow();
769+ quint64 endViewCulling = usecTimestampNow();
770770 _lastViewCullingElapsed = (endViewCulling - start) / 1000;
771771 }
772772
@@ -775,7 +775,7 @@ void VoxelSystem::checkForCulling() { · 2 unmodified lines
775775 // VBO reubuilding. Possibly we should do this only if our actual VBO usage crosses some lower boundary.
776776 cleanupRemovedVoxels();
777777
778− uint64_t sinceLastAudit = (start - _lastAudit) / 1000;
778+ quint64 sinceLastAudit = (start - _lastAudit) / 1000;
779779
780780 if (Menu::getInstance()->isOptionChecked(MenuOption::AutomaticallyAuditTree)) {
781781 if (sinceLastAudit >= std::max((float) _lastViewCullingElapsed, VIEW_CULLING_RATE_IN_MILLISECONDS)) {