TouchControls icon indicating copy to clipboard operation
TouchControls copied to clipboard

hittest cpu

Open gushenjie opened this issue 3 years ago • 4 comments

After the collision detection is turned on, the FPS on the PC side is only about 30 frames, and on the mobile side, it is only about 6 frames. Is there any suggestion for optimization?

gushenjie avatar Sep 03 '22 14:09 gushenjie

Do you run the provided example or your own one?
For me, this example works about 60 fps on my laptop and mobile.

mese79 avatar Sep 03 '22 16:09 mese79

I directly access the example address you sent, and it is a black screen after clicking to open through WeChat

gushenjie avatar Sep 06 '22 09:09 gushenjie

It may be that the number of objects detected by the raycaster is large. I printed the timestamp log on the mobile terminal and found that it took 60ms.

gushenjie avatar Sep 06 '22 09:09 gushenjie

If you have numerous objects in the scene, then yes, that might slow down the collision detection.

mese79 avatar Sep 07 '22 06:09 mese79