Closed yutannihilation closed 2 years ago
Actually, the code below crashes my GPU...
wgpugd::wgpugd(10, 10)
col <- scales::alpha(viridisLite::viridis(20, option = "H"), 0.65)
set.seed(16)
plot(runif(300000), col = col, bg = NA, cex = 30, lwd = 50, pch = 21)
dev.off()
If I use instanced rendering, the order of rendering doesn't match with the actual order, so probably depth testing will be needed.
Wait, do I really need to tessellate the circle on CPU...?
Now circles are rendered on GPU's side
Instancing should contribute to a better performance especially when a scatter plot contains millions of the same shape of points.