vujadin / BabylonHx

Port of Babylon.js 3D engine to Haxe.
http:/paradoxplay.com/babylonhx
Apache License 2.0
188 stars 43 forks source link

Performance issue with Pointlight #81

Open mightymarcus opened 8 years ago

mightymarcus commented 8 years ago

When using a Pointlight and a mesh fills the whole screen, the performance drops about 50%.

For example I have a big Plane as a Background, but it also happens when the camera is near a mesh so it fills the entire screen. It's happening with pointlight and spotlight.

It happens only for android native target, the problem doesn't exist on js target (android mobile browser).

mightymarcus commented 8 years ago

Looks like it's the same problem you had with skybox performance. When I disableLightning on the background plane material (and using emissiveColor) the problem is gone. Would like to have the lighting on the background too, but it's better than nothing.