Jump to content

Search the Community

Showing results for tags 'NodeSector'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Hello all; I need some dynamiclly loading and unloading resource function in my project. I take a reference to the loading example in data/lightmap/loading.cpp. This example show how to load resources, but it didnot give example about how to release resources from memory. In my own try out, i divide the whole scene into four SectorNode and keep these SectorNode in an array like this: SectorNode sectors[4]; sectors[0] = sector1; sectors[2] = sector2; sectors[3] = sector3; sectors[4] = sector4; and sector1, sector2, sector3, sector4 are successfully get from editor getnode functions. I realize the logic that when get start fisrt loading sector1, then loading sector2, clear sector1, then loading sector3,clear sector2,and loading sector4, clear sector3 and loading sector1, clear sector4 and go on and on according to the movement and position of scene camera. the loading and clear code i write is as follows pesudo code: SectorNode oldSector = getCurrentSector(); // for example, sector2 SectotNode newSector = getNextSector(); // for example, sector3 newSector.loadMeshes(); nesSector.loadTextures(); oldSector.clearMeshes(sectors); oldSector.clearTextures(sectors); however, the above logic only works particially right. The load functions works fine while the clear functions seem have no effect. the clear functions runs correctly and didn't complain any errors or warnings, but I see the texture memory usage statistics in profiles is always going up and seems didn't release any thing.. so what is the right method to use these clear functions to manage resources? need you help.......................
×
×
  • Create New...