- Messages
- 69
Okay, I have come across a minor issue with the following code:
--------------------------------------------------------------
LIGHT_NAV_beta_MasterScale_1 label BGLCODE
IFIN1 LOD_01, 033Bh, 0,199
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF00009Ch, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_01 LABEL WORD
IFIN1 LOD_02, 033Bh, 200,299
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF00008Bh, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_02 LABEL WORD
IFIN1 LOD_03, 033Bh, 300,399
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF00007Bh, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_03 LABEL WORD
IFIN1 LOD_04, 033Bh, 400, 499
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF00006Ah, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_04 LABEL WORD
IFIN1 LOD_05, 033Bh, 500, 599
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF000059h, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_05 LABEL WORD
IFIN1 LOD_06, 033Bh, 600, 699
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF000048h, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_06 LABEL WORD
;BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF000038h, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
LOD_CONTINUE LABEL WORD
BGL_RETURN
bgl_riff_end_LIGHT_NAV_beta label BGLCODE
------------------------------------------------------------------------
It works great visually. The issue is that when there is an airport full of these lights (about 3000), the frame rate drops a minimum of 50% and get worse the further away you get from the airport. Which is VERY odd.
I am wondering if the coding is causing the issue or is there something in FS9 that causes all the lights to be rendered even with an LOD range.
Thanx in advance.
Sean E.
--------------------------------------------------------------
LIGHT_NAV_beta_MasterScale_1 label BGLCODE
IFIN1 LOD_01, 033Bh, 0,199
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF00009Ch, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_01 LABEL WORD
IFIN1 LOD_02, 033Bh, 200,299
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF00008Bh, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_02 LABEL WORD
IFIN1 LOD_03, 033Bh, 300,399
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF00007Bh, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_03 LABEL WORD
IFIN1 LOD_04, 033Bh, 400, 499
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF00006Ah, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_04 LABEL WORD
IFIN1 LOD_05, 033Bh, 500, 599
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF000059h, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_05 LABEL WORD
IFIN1 LOD_06, 033Bh, 600, 699
BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF000048h, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
JUMP LOD_CONTINUE
LOD_06 LABEL WORD
;BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FF000038h, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)
LOD_CONTINUE LABEL WORD
BGL_RETURN
bgl_riff_end_LIGHT_NAV_beta label BGLCODE
------------------------------------------------------------------------
It works great visually. The issue is that when there is an airport full of these lights (about 3000), the frame rate drops a minimum of 50% and get worse the further away you get from the airport. Which is VERY odd.
I am wondering if the coding is causing the issue or is there something in FS9 that causes all the lights to be rendered even with an LOD range.
Thanx in advance.
Sean E.

