Xojo Conferences
XDCMay2019MiamiUSA

Slow RB3D loading (Was: Matte Surfaces) (Real Studio games Mailinglist archive)

Back to the thread list
Previous thread: Re: Slow RB3D loading
Next thread: The schoolbus game - performance of RB


Re: Matte Surfaces   -   Lars Jensen
  Slow RB3D loading (Was: Matte Surfaces)   -   Frank Condello
    Re: Slow RB3D loading (Was: Matte Surfaces)   -   Joseph J. Strout
    Re: Slow RB3D loading (Was: Matte Surfaces)   -   Joseph Nastasi

Slow RB3D loading (Was: Matte Surfaces)
Date: 13.03.05 21:23 (Sun, 13 Mar 2005 15:23:00 -0500)
From: Frank Condello
On 13-Mar-05, at 1:23 PM, Jesse Simko wrote:

> Some people have pointed out that it takes a long time for the program
> to load (up to 15 seconds on a G3.) I was trying to figure out what
> the bottleneck is... the models themselves seemed to load in a very
> short time (just a fraction of a second), but applying them to the
> RB3D surface and displaying that first frame took a while. Is this
> consistent with what others have experienced?

There are technical reasons why the first frame might be is slow
(textures being uploaded to VRAM for example) but I don't think that's
the bottleneck here...

The models in your download are text format, and may load quickly from
disk, but they will parse _much_ slower than binary format once passed
off to Quesa - something like 10x slower - I'm not exaggerating! I know
you used text format in order to change the specular settings, but you
should convert them back to binary with a tool like 3DMF Optimizer for
release builds (3DMF Optimizer is available here:
<http://www.pangeasoft.net/files/> and requires Classic).

One more quirk to watch out for is resizing an RB3Dspace - you should
always size the space first, then load objects into it. Resizing
afterwards causes a texture rebuild. Newer versions of Quesa allow
resizing without texture rebuilds, but RB3D appears to force a rebuild
regardless - I should probably bug this...

Frank.
------------
Open Source RB Plugins and Classes
<http://developer.chaoticbox.com>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Slow RB3D loading (Was: Matte Surfaces)
Date: 14.03.05 15:57 (Mon, 14 Mar 2005 08:57:29 -0600)
From: Joseph J. Strout
At 3:23 PM -0500 3/13/05, Frank Condello wrote:

>I know you used text format in order to change the specular
>settings, but you should convert them back to binary with a tool
>like 3DMF Optimizer for release builds (3DMF Optimizer is available
>here: <http://www.pangeasoft.net/files/> and requires Classic).

Brian has passed the code off to me, and Seth Willits has even taken
a first pass at Carbonizing it (which was nontrivial). But I've been
negligent in actually cleaning it up any further and posting it
anywhere. If somebody needs it, contact me or Seth and I bet we can
dig it up.

However, assuming your 3DMF code is pretty decent to begin with, you
may not need 3DMF Optimizer; you just need Anatas to convert from
text to binary. That's all Anatas does, but it's very good at it.

Best,
- Joe

Re: Slow RB3D loading (Was: Matte Surfaces)
Date: 14.03.05 16:53 (Mon, 14 Mar 2005 10:53:08 -0500)
From: Joseph Nastasi

On Mar 14, 2005, at 9:57 AM, Joseph J. Strout wrote:
>
> However, assuming your 3DMF code is pretty decent to begin with, you
> may not need 3DMF Optimizer; you just need Anatas to convert from text
> to binary. That's all Anatas does, but it's very good at it.

FYI, Geo3D is really neat, scriptable 3DMF viewer that can also save
models as binary or text. It's available on OS X.
http://www.topoi.ch/

HTH,
Joe