Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    (memory) Problem adding and removing worldshadowlights multiple times

    Bug Reporting (FUZE 4 Nintendo Switch)
    2
    5
    465
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • joyrider3774
      joyrider3774 last edited by

      Hey,

      While programming on my project i stumbled across another problem. I initialize and deinitalize my "3d" world at the end and start of my game loop but i noticed the game and fuze would crash hard if i did this about 100 times (like going playing 100 games starting from titlescreen).

      I have traced it down to adding a worldshadowlight and destroying that light. after running it for 100 loops in this test program i get a memory allocation failed. And even fuze itself has become unstable then. If you get that error you have to restart fuze or it will crash on itself later on (for example when going to programs or even media or so).

      I have shared the test program but its still pending. Maybe there is something wrong with my code or there might be a bug somewhere in fuze's code dealing with this. Not sure if people actually already tested adding and removing a worldshadowlight multiple times.

      this is the code:
      9784ece1-8e08-454c-b822-96a60808a537-image.png

      and this is the code it's still pending but should be downloadable as soon as it's approved
      fe6d65bb-b424-41ae-b24d-768b45f212c4-image.png

      remeber if you test this out you will have to restart fuze.

      Does anyone see anything wrong with the code that i do ? thanks

      1 Reply Last reply Reply Quote 2
      • Willpowered
        Willpowered Fuze Team last edited by

        I know that in the next patch there's a fix for memory leaks with point shadow lights, but I can't remember if it also addresses world shadow lights. Maybe @Dave can test it out.

        1 Reply Last reply Reply Quote 2
        • joyrider3774
          joyrider3774 last edited by

          @Willpowered thanks for the info did not know that, it could indeed be the same or similar problem, but i was not entirely certain it was fuze's fault or my codes fault. Lets hope both are fixed at the same time

          1 Reply Last reply Reply Quote 1
          • joyrider3774
            joyrider3774 last edited by

            @Willpowered @Dave just tested with 3.0.0 i think memory bug with worldshadowlight is not fixed. PS i only tested worldshadowlight as i'm not using any pointshadowlights

            64969c0e-4b79-4606-8afd-9d30591b3090-image.png

            1 Reply Last reply Reply Quote 0
            • joyrider3774
              joyrider3774 last edited by

              just tested in 3.1.0 bug still exists

              1 Reply Last reply Reply Quote 0
              • First post
                Last post