evanw / csg.js

Constructive solid geometry on meshes using BSP trees in JavaScript
http://evanw.github.com/csg.js/
MIT License
1.79k stars 264 forks source link

onmousemove unresponsive in complex rendering #3

Open makemeunsee opened 12 years ago

makemeunsee commented 12 years ago

The following code is based on your own demo for csg. It builds an atomium like structure in a view and a simple sphere in another. Using Chrome 15 (although building the model is very slow, it works in Firefox 8), dragging the mouse is ineffective in the first (atomium) canvas, whereas it is still responsive in the test canvas. http://pastebin.com/yaFmC4bw (couldnt manage to format whole code properly)

evanw commented 12 years ago

This bug has to do with lightgl.js I believe. I've experienced this in Chrome before but every time I try to debug it, the problem disappears. The first time I ran your example the problem showed up, but refreshing the page made the bug disappear. I'll keep working on it.

makemeunsee commented 12 years ago

I found too that the bug isnt always reproducible, although it tends to be more frequent with more complex models (hence the example). also, thanks a lot for your work and these libraries.