Xojo Conferences
XDCMay2019MiamiUSA

New Fireworks Project (Real Studio games Mailinglist archive)

Back to the thread list
Previous thread: [ANN] Quesa Wrappers v0.6b (RB3D Extensions)
Next thread: sound design (was: Zombie Invasion update)


[ANN] Preview of RBD 2.4   -   Marc Zeedar
  New Fireworks Project   -   Thomas Cunningham
   Re: New Fireworks Project   -   Joseph J. Strout
    Re: New Fireworks Project   -   Lars Jensen
     Re: New Fireworks Project   -   Joseph J. Strout
      Re: New Fireworks Project   -   Lars Jensen

New Fireworks Project
Date: 06.05.05 03:57 (Thu, 05 May 2005 16:57:40 -1000)
From: Thomas Cunningham
Aloha Rb Gamers,

I received a new entry for the *contest* from Adam Cuipka. Thank you for the
participation Adam.

An excellent graphics display of the explosion, nice work. The built
application only gives me about 6-8 FPS on my iMac so maybe some more
optimizations are in order. Your note indicated that this was your first Rb
app, wow, congrats, you did very well.

I was going to pull the plug on the site because of no recent entries, but
will leave it up for now. Please, if you have something, send it along.

I will remove the items in
http://www.maui.net/~mauitom/zombie.html
since the two guys software team is up and running - nice work there - as
usual! :-)

Re: New Fireworks Project
Date: 06.05.05 17:01 (Fri, 6 May 2005 11:01:33 -0500)
From: Joseph J. Strout
At 4:57 PM -1000 5/5/05, Thomas Cunningham wrote:

>I received a new entry for the *contest* from Adam Cuipka. Thank you for the
>participation Adam.
>
>An excellent graphics display of the explosion, nice work. The built
>application only gives me about 6-8 FPS on my iMac so maybe some more
>optimizations are in order. Your note indicated that this was your first Rb
>app, wow, congrats, you did very well.
>http://www.maui.net/~mauitom/fireworks.html

Agreed, really nice work. I noticed that the updateDisplay method is
calling QDFlushPortBuffer -- that's not necessary because (1) you're
updating from a Timer, rather than a tight loop, and (2) even if you
were updating from a tight loop, we now have this functionality built
in (as the Window.UpdateNow function). Oh, and of course I'm
assuming you turn off the composite window; that will certainly make
things slower than they need to be anyway.

You did a really nice job using the RGBSurface in the blendPixels
function. You could perhaps squeeze a *few* more cycles out by
breaking the colors into red, green, and blue integers as soon as you
get them, but I doubt it would gain that much. The following
expression

if ( not ( (pix2 = pix1) and (pix3 = pix1) and (pix4 = pix1) ) ) then

could be simplified to:

if pix2 <> pix1 or pix3 <> pix1 or pix4 <> pix1 then

And note that throughout your code, you don't need parentheses around
the expression in an If statement -- that's true of Java but not RB.
(Nor do you need parentheses on a subroutine call.)

You should put a "#pragma backgroundTasks False" at the top of
blendPixels; this will save a LOT of time because of the
doubly-nested loops, and because blendPixels is where your app is
spending almost 60% of its time.

With the pragma, and turning off composite, I'm getting about 45-60
FPS on my machine, and it looks gorgeous. Nice job!

- Joe

Re: New Fireworks Project
Date: 06.05.05 18:07 (Fri, 06 May 2005 13:07:46 -0400)
From: Lars Jensen
> With the pragma, and turning off composite, I'm getting about 45-60
> FPS on my machine...

Hmm. I did those things, and the frame rate is virtually unchanged, in the
mid single digits. I tried turning off Metal too -- no luck. (But at least I
could read the frame rate, which kept overwriting itself after I turned off
Composite.)

10.3, 1.8GHz iMac G5

lj
_______________________________________________
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: New Fireworks Project
Date: 06.05.05 18:44 (Fri, 6 May 2005 12:44:14 -0500)
From: Joseph J. Strout
At 1:07 PM -0400 5/6/05, Lars Jensen wrote:

> > With the pragma, and turning off composite, I'm getting about 45-60
>> FPS on my machine...
>
>Hmm. I did those things, and the frame rate is virtually unchanged, in the
>mid single digits. I tried turning off Metal too -- no luck.

I did that too. :) Probably a silly question for someone
experienced as you, but did you remember to test as a built app
rather than in the IDE?

For me, those changes resulted in almost doubling the FPS...

Best,
- Joe

Re: New Fireworks Project
Date: 06.05.05 18:59 (Fri, 06 May 2005 13:59:02 -0400)
From: Lars Jensen
> Probably a silly question for someone experienced as you, but did you remember
> to test as a built app rather than in the IDE?

No (proving that there are no silly questions, only silly programmers). I
got a much better frame rate (mid-20s) until things started exploding, then
back down to single digits.

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