History

Move Hide/Show local voxels to a dedicated thread so that it doesn't slow performance of voxel packet processing

ZappoMan committed 12 years ago

Commit 76b3bd41 parent 14129cd7 files · +128 −66Browse files

Showing the changes to libraries/shared/src/OctalCode.cpp (1 of 7 files). Show all

Unified · Split

libraries/shared/src/OctalCode.cpp+3−0
@@ -63,6 +63,9 @@ int branchIndexWithDescendant(const unsigned char* ancestorOctalCode, const unsi · 62 unmodified lines
63 int parentSections = numberOfThreeBitSectionsInCode(ancestorOctalCode);63 int parentSections = numberOfThreeBitSectionsInCode(ancestorOctalCode);
64 64
65 int branchStartBit = parentSections * 3;65 int branchStartBit = parentSections * 3;
66 // Note: this does not appear to be "multi-byte length code" safe. When octal codes are larger than 255 bytes
67 // long, the length code is stored in two bytes. The "1" below appears to assume that the length is always one
68 // byte long.
66 return sectionValue(descendantOctalCode + 1 + (branchStartBit / 8), branchStartBit % 8);69 return sectionValue(descendantOctalCode + 1 + (branchStartBit / 8), branchStartBit % 8);
67}70}
68 71

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t