realbasic-games
[Top] [All Lists]

Re: Alternate 3D

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Alternate 3D
From: Frank Condello <developer at chaoticbox dot com>
Date: Sun, 15 May 2005 15:19:31 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <BEAB0B16 dot 2FD5%acuipka at statrite dot com> <9a9bda4d9464da3efd3466eb6594736d at charcoaldesign dot co dot uk> <92161a70ae90022f4a09fef4d286c524 at charcoaldesign dot co dot uk> <9F337861-185D-4F37-9670-444ACFE021E9 at chaoticbox dot com> <fb9a751ab848ca512515791d2e1ba0ca at charcoaldesign dot co dot uk>
On 15-May-05, at 7:48 AM, Nick Lockwood wrote:

As for DisableBoundsChecking, the last I'd heard was that it had originally applied only to one-dimensional boolean arrays, and that even this optimisation had been removed in the RB 5.0 compiler rewrite. Has this optimisation now been re-implemented for all arrays?

I honestly don't know the details, but something must catch OutOfBoundsException for all arrays and pseudo-arrays (like memoryblocks) and turning off BoundsChecking can cause any out of bounds situation to crash (or at least not work right) so it must be doing something.

I think REAL are shooting themselves in the foot a little by not advertising these features more. I got a factor of 10 speed improvement using them, but they are poorly documented in the help system.

I agree. Even a short "Performance Tweaking Guide" would go a long way, as the same issues come up over and over on these NUGs. It would also be nice to know some more details on how each pragma works. I tend to slap these pragmas anywhere I'd like a speed up, but I know some have little or no affect in certain situations - I just don't know which and why.

Also some check-boxes to enable these features globally for an application would be handy.

Not sure I'd want to do it globally, but ya, there's got to be a better way to handle these. Sticking them in almost every method does get tedious, so maybe a way to do it per-module/class or even just a combined pragma statement that disables everything in one shot.

Frank.
–––––––––––––––––––––––––––––––––
Open Source RB Goodies and Shareware
<http://developer.chaoticbox.com/>
<http://www.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>

<Prev in Thread] Current Thread [Next in Thread>