• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Model/texture/LOD memory usage

Messages
3
Country
germany
Hello guys!

I am quite new to FS/P3D development so I was wondering if you could answer the following questions. I already did lots of digging but I was unable to find a clear answers for these.

1. I know textures need to have dimensions that are multiples of 2, but do I need to keep them square? If no, can I safely assume FS/P3D will keep only the original texture in memory, without aligning it to a square (and thus wasting memory)?

2. Is FS/P3D keeping LOD models in memory all the time? Even when this object is not rendered? For example - if I were to create two different LODs for a single object, when "less detailed" object is visible, no memory would be wasted for "more detailed" version? I am asking because I am really concerned about memory usage in my project, and I am wondering if I only have to think about memory usage of objects that are currently visible on the screen (correct LODs) or is there going to be some kind of overhead added for all the invisible LODs?

3. A variation of the previous one - let's say I am flying over a city and am only able to see it through front and side windows. There is no way to see world behind the plane (at least not from Virtal Cockpit view). Does it mean FS/P3D is keeping all these models and textures that are currently behind me (and as such, not visible) in memory? I assume no draw calls are wasted on these as, of course, nothing needs to be drawn here.

3. If I understand correctly, one drawcall will be issued for all objects using the same texture, but only up to 64k textured triangles limit (a sum for all of these objects)? So if I were going to use drawcall batching for two objects sharing the same texture, but each consisting of 40k triangles 2 drawcalls will need to be used anyway?

Thanks in advance for all your help!
 
Draw call batching supersedes LOD implementation, so you must chose one or the other scheme to reduce load. LOD swapping is a common practice in many video games, is a very efficient way to allocate resources and the issue, at "the pipeline," so to speak, is rendering, which amounts to the capacity of the video processing ability and this is not normally associated with the amount of available RAM. You can answer question #3 yourself by running the sim under heavy load and rotating your view. The slight pause is caused by the new area in view being rendered.
 
Just a comment on Question 1. You can have non square textures. 256k x 128k would work for instance.
 
Back
Top