Jump to content
Sign in to follow this  
arno

Direct BGL-exportation vs. object import in Airport

Recommended Posts

Guest efva2002

Hi,I'm wondering if there is any performance issue when comparing these two different methods of inserting 3d-objects into the simulator:1. Direct BGL-exportation from e.g. FSDS2's menu.2. An API of the object is inserted in Airport, from where it is then exported to BGL-format and into the sim.

Share this post


Link to post
Share on other sites

I don't think there would be a difference, since these are both really the same thing. In both cases, the program generates SCASM code which it then sends to the compiler. You can take a look at the SCASM source in both cases, and see that the only real difference might be in the header. Also, AFW doesn't add the macro entirely, but instead uses a macro call to include it, but the result is going to be the same when you're done.Generally speaking, it might be more effecient to have one big BGL file rather than one for every object, since would be able to load this into memory quicker, but this is probably a minor improvement.Of course, if you are loading the same object many times, then the way to do it is with a library object, which can then be placed using AFW. You can not place library objects using FSDS2, so the only choice would be AFW for this. There are other benefits to using library objects, and sometimes I will include an object in a library even if I am only using it once.- Martin

Share this post


Link to post
Share on other sites

Yes, Martin is correct. Using the API or a direct BGL makes no real difference if you place it once and don't use a library.The parameters in the API are just replaced during compilation (%1, %2, etc). So in the end you get the same BGL code if you make the BGL file direct or place the API. The only advantage of the API is that you can pass certain paramters like the position and the heading to it and that allows you to manipulate the object more.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest efva2002

Okay, thanks. Then I'll stick to the good old APIs. :()And Arno, I'm back after one year's break.

Share this post


Link to post
Share on other sites

Good to see you back Sebastian :). Looking forward to some nice sceneries again.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...