Hello guys, I have ran into weird problem after upgrading Babylon from v3 to v4 (latest preview version). I have done this update when I came back to my Babylon project after several months.
I am not sure whether it is bug or not, but it has three attributes that from my point of view qualifying it as a bug.
- It didnt happen on previous version of Babylon (3.x) and after upgrade it does.
- It behaves differently in Chrome and in Firefox.
3 It behaves differently across v4.1.0-alpha versions
Now to the problem itself
Problem occurs when I add / remove point lights to / from my scene and it behaves differently accross versions of Babylon and browsers
Chrome behaviour v4.1.0. 23
Adding light works perfectly without new-light-lag that was caused by shader compilation. I guess that parallel shader compilatrion works nicely ?
Removing light this causes screen to “blink” and WebGL error appears in console It is undefined behaviour to have a used but unbound uniform buffer
Firefox behaviour v4.1.0. 23
Both adding and removing of lights is working as it worked in version 3.x - it lags (no parallel compilation for FF ?) but it doesnt produce any error or screen bliinking.
Chrome behaviour v4.1.0. 27
Adding light works sometimes causes screen to “blink” a little - not always, but usually it does. Parallel shader compilations seems to be working (no noticeable lag). No error in console even when blinks occurs.
Removing light this is as it was on version 23 - blink + error
Firefox behaviour v4.1.0. 27
This is the same as version 23 (no errors or blinks but lags are present).
========================
One more problem in FireFox - apparently it works differently with heightmaps than it worked in Babylon v3. I am using heightmaps to create cavern walls and now it is broken in FireFox (ok in Chrome). Previously it worked correctly in both browsers. It is surprising, I thought that it is pure mathematics and no WebGL magic and it should work the same way in all browsers
Take a look at the following screenshots - firts screen is from FireFox with noticeable “empty space” between walls. Second one is from Chrome where it is ok. In Babylon v3 it was ok in both browsers.
Thanx for some insight !! I can put my app to my hosting if needed or create video with these “blinks”.