Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Declare wrapper functions vs. straight declares -- performace (Real Studio games Mailinglist archive)

Back to the thread list
Previous thread: RBGL started at SourceForge
Next thread: Re: realbasic-games Digest, Vol 12, Issue 24


[ANN] Preview of RBD 2.4   -   Marc Zeedar
  Declare wrapper functions vs. straight declares -- performace   -   Asher Dunn
   Re: Declare wrapper functions vs. straight declares -- performace   -   Joseph J. Strout
   Re: Declare wrapper functions vs. straight declares -- performace   -   Asher Dunn
   Re: Declare wrapper functions vs. straight declares -- performace   -   Joseph J. Strout
   Re: Declare wrapper functions vs. straight declares -- performace   -   Asher Dunn
   Re: Declare wrapper functions vs. straight declares -- performace   -   Asher Dunn
   Re: Quesa Wrappers questions   -   Frank Condello

Declare wrapper functions vs. straight declares -- performace
Date: 29.03.05 04:06 (Mon, 28 Mar 2005 22:06:56 -0500)
From: Asher Dunn
I presume there is a difference in performance between wrapping a
declare in its own function (to make it an RB function) compared to
just declaring it in every function I use it?
Wrapping it is one more function call, but that can't be all that much
overhead...
Would this make any sort of performance difference whatsoever,
considering I could be calling hundreds of OpenGL functions per frame?

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software
<http://www.fireyesoftware.com/>
AIM and Yahoo: fireye7517

_______________________________________________
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: Declare wrapper functions vs. straight declares -- performace
Date: 29.03.05 04:42 (Mon, 28 Mar 2005 21:42:11 -0600)
From: Joseph J. Strout
At 10:06 PM -0500 3/28/05, Asher Dunn wrote:

>I presume there is a difference in performance between wrapping a
>declare in its own function (to make it an RB function) compared to
>just declaring it in every function I use it?
>Wrapping it is one more function call, but that can't be all that
>much overhead...

Right.

>Would this make any sort of performance difference whatsoever,
>considering I could be calling hundreds of OpenGL functions per
>frame?

It might, in that case. There's really no way to tell except to try
it both ways.

But if it doesn't make a big difference, then I'd recommend leaving
them in their own functions, if that makes the code neater. Someday
we may be able to inline such functions, so you can have the best of
both worlds.

Best,
- Joe

Re: Declare wrapper functions vs. straight declares -- performace
Date: 29.03.05 05:31 (Mon, 28 Mar 2005 23:31:55 -0500)
From: Asher Dunn

On Mar 28, 2005, at 10:42 PM, Joseph J. Strout wrote:

> At 10:06 PM -0500 3/28/05, Asher Dunn wrote:
>
>> I presume there is a difference in performance between wrapping a
>> declare in its own function (to make it an RB function) compared to
>> just declaring it in every function I use it?
>> Wrapping it is one more function call, but that can't be all that
>> much overhead...
>
> Right.
>
>> Would this make any sort of performance difference whatsoever,
>> considering I could be calling hundreds of OpenGL functions per
>> frame?
>
> It might, in that case. There's really no way to tell except to try
> it both ways.

Darn :-(
That would take time...

> But if it doesn't make a big difference, then I'd recommend leaving
> them in their own functions, if that makes the code neater.

Oh, it definitely makes the code neater.

> Someday we may be able to inline such functions, so you can have the
> best of both worlds.

That would be awesome! Is there a feature request for inline functions?

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software
<http://www.fireyesoftware.com/>
AIM and Yahoo: fireye7517

_______________________________________________
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: Declare wrapper functions vs. straight declares -- performace
Date: 29.03.05 14:34 (Tue, 29 Mar 2005 07:34:02 -0600)
From: Joseph J. Strout
At 11:31 PM -0500 3/28/05, Asher Dunn wrote:

>>Someday we may be able to inline such functions, so you can have
>>the best of both worlds.
>
>That would be awesome! Is there a feature request for inline functions?

I'm not sure -- I'd suggest doing a search, and if nothing relevant
comes up, go ahead and make a new feedback report. We can always
merge them later if we discover it's a duplicate.

Best,
- Joe

Re: Declare wrapper functions vs. straight declares -- performace
Date: 30.03.05 04:30 (Tue, 29 Mar 2005 22:30:33 -0500)
From: Asher Dunn

On Mar 29, 2005, at 8:34 AM, Joseph J. Strout wrote:

>>> Someday we may be able to inline such functions, so you can have the
>>> best of both worlds.
>>
>> That would be awesome! Is there a feature request for inline
>> functions?
>
> I'm not sure -- I'd suggest doing a search, and if nothing relevant
> comes up, go ahead and make a new feedback report. We can always
> merge them later if we discover it's a duplicate.

This feature request seems to be a request for loop-unrolling also, but
it focuses on inline...
<http://www.realsoftware.com/feedback/viewreport.php?reportid°hycmye>

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software
<http://www.fireyesoftware.com/>
AIM and Yahoo: fireye7517

_______________________________________________
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: Declare wrapper functions vs. straight declares -- performace
Date: 30.03.05 04:32 (Tue, 29 Mar 2005 22:32:49 -0500)
From: Asher Dunn

On Mar 29, 2005, at 10:30 PM, Asher Dunn wrote:

>>>> Someday we may be able to inline such functions, so you can have
>>>> the best of both worlds.
>>>
>>> That would be awesome! Is there a feature request for inline
>>> functions?
>>
>> I'm not sure -- I'd suggest doing a search, and if nothing relevant
>> comes up, go ahead and make a new feedback report. We can always
>> merge them later if we discover it's a duplicate.
>
> This feature request seems to be a request for loop-unrolling also,
> but it focuses on inline...
> <http://www.realsoftware.com/feedback/viewreport.php?reportid°hycmye>

And this one too (judging from the evaluation, this request is quite
old...)
<http://www.realsoftware.com/feedback/viewreport.php?reportid=hezuvbbr>

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software
<http://www.fireyesoftware.com/>
AIM and Yahoo: fireye7517

_______________________________________________
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>