We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97c5aa6 commit 25a1a1bCopy full SHA for 25a1a1b
main_js.go
@@ -716,13 +716,20 @@ L_MAIN:
716
samplingRatio := 1
717
if pe.vi.dragging() {
718
totalPoints := 0
719
+ maxStride := 4
720
if hasPointCloud && pp.Points > 0 {
721
totalPoints += pp.Points
722
+ maxStride = max(pp.Stride(), maxStride)
723
}
724
if hasSubPointCloud && ppSub.Points > 0 && selectMode == selectModeInsert {
725
totalPoints += ppSub.Points
726
+ maxStride = max(ppSub.Stride(), maxStride)
727
728
samplingRatio = 1 + totalPoints/pe.cmd.NumFastRenderPoints()
729
+ // make sure the stride used in gl.VertexAttribIPointer is <= 255
730
+ if samplingRatio*maxStride > 255 {
731
+ samplingRatio = int(255.0 / maxStride)
732
+ }
733
734
735
0 commit comments