One of my users has created a rather sophisticated game. It plays
beautifully in PulpCore player (60 FPS), but when played inside an
applet, regardless of whether the applet is online or played locally,
performance is atrocious.
What sort of differences could there be between playing inside a
desktop application versus playing inside the browser that could lead
to such a performance disparity?
--
You received this message because you are subscribed to the Google Groups "PulpCore" group.
To post to this group, send email to pulp...@googlegroups.com.
To unsubscribe from this group, send email to pulpcore+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulpcore?hl=en.
Maybe he has a *really* old JRE where the hotspot optimization isn't
that good whereas he might have a more recent JDK/JRE in his path that
is used when he runs it as an application. More recent 1.6 versions tend
to have much better hotspot optimization and optimized networking and
threading - not sure if the app is using those.
Regards,
Chris Colman
http://pagebloom.com
just an idea among other: the amount of memory available in an applet
environment is far smaller than in a 'desktop JRE' environment.
Maybe It has an impact if the applet is memory consuming, because having
few memory prompts the garbage collector to run more often in 'applet JRE'
Regards,
Nouk�
Le 31/03/2010 05:26, Jonathan Chung a �crit :
Applets will always be slower than applications for reasons unknown and, as
discovered, it seems that rendering is more affected than other types of
operations.
-JCT
-----Original Message-----
From: pulp...@googlegroups.com [mailto:pulp...@googlegroups.com] On Behalf
Of Nouknouk
Sent: Wednesday, 31 March 2010 18:38
To: pulp...@googlegroups.com
Subject: Re: Performance difference between app and applet is enormous for a
game.
Hi,
just an idea among other: the amount of memory available in an applet
environment is far smaller than in a 'desktop JRE' environment.
Maybe It has an impact if the applet is memory consuming, because having
few memory prompts the garbage collector to run more often in 'applet JRE'
Regards,
Nouk²
Le 31/03/2010 05:26, Jonathan Chung a écrit :
> This is more of a general question and probably not related at all to
> PulpCore.
>
> One of my users has created a rather sophisticated game. It plays
> beautifully in PulpCore player (60 FPS), but when played inside an
> applet, regardless of whether the applet is online or played locally,
> performance is atrocious.
>
> What sort of differences could there be between playing inside a
> desktop application versus playing inside the browser that could lead
> to such a performance disparity?
>
>
--
Hi,
just an idea among other: the amount of memory available in an applet environment is far smaller than in a 'desktop JRE' environment.
Maybe It has an impact if the applet is memory consuming, because having few memory prompts the garbage collector to run more often in 'applet JRE'
Regards,
Nouk²
Le 31/03/2010 05:26, Jonathan Chung a écrit :
This is more of a general question and probably not related at all to
PulpCore.
One of my users has created a rather sophisticated game. It plays
beautifully in PulpCore player (60 FPS), but when played inside an
applet, regardless of whether the applet is online or played locally,
performance is atrocious.
What sort of differences could there be between playing inside a
desktop application versus playing inside the browser that could lead
to such a performance disparity?
- Applet is here:
http://stencyl.com/prototype/play_verus.php
- Example of an unaffected applet:
http://stencyl.com/prototype/play_gourd.php
(Request: DO NOT CLICK THE FB / TWEET BUTTONS ON THESE PAGES)
On Mar 31, 7:51 am, David Brackeen <brack...@gmail.com> wrote:
> I agree, it's probably the smaller heap.
> Hit ctrl-I and look at the heap usage.
>
> On Wed, Mar 31, 2010 at 12:38 AM, Nouknouk <noukn...@gmail.com> wrote:
> > Hi,
>
> > just an idea among other: the amount of memory available in an applet
> > environment is far smaller than in a 'desktop JRE' environment.
> > Maybe It has an impact if the applet is memory consuming, because having
> > few memory prompts the garbage collector to run more often in 'applet JRE'
>
> > Regards,
>
> > Nouk²
>
> > Le 31/03/2010 05:26, Jonathan Chung a écrit :
>
> > This is more of a general question and probably not related at all to
> >> PulpCore.
>
> >> One of my users has created a rather sophisticated game. It plays
> >> beautifully in PulpCore player (60 FPS), but when played inside an
> >> applet, regardless of whether the applet is online or played locally,
> >> performance is atrocious.
>
> >> What sort of differences could there be between playing inside a
> >> desktop application versus playing inside the browser that could lead
> >> to such a performance disparity?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "PulpCore" group.
> > To post to this group, send email to pulp...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > pulpcore+u...@googlegroups.com<pulpcore%2Bunsu...@googlegroups.com>
I did some poking around and found the memory usage to be well below
the allocated amount (29M still free), so it seems like the thrashing
theory isn't the case here.
java build 1.6.0_19-b04
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/
20100115 Firefox/3.6 (.NET CLR 3.5.30729)
AMD Athlon 64x2dual 3800+ 2.01ghz, 3gb
I pressed CTRL+ i but couldn't get info on the actual frame rate.
So I pulled out my macbookpro. It ran exactly the same.
Smooth and no glitches.
OSX 10.6.2
2.53 ghz intel core 2 duo
4gb 1067 mhz ddr3
Java 1.6.0_17
Java SE Runtime Env (build 1.6.0_17-b04-248-10m3025
Java HotSpot 64-Bit Server VM (build 14.3-b01-101, mixed mode)
I know this isn't much help for me to not see a problem with the game,
other than the applet size and the weird controls.
But maybe it can help you eliminate something.
When you say performance is atrocious, do you mean it is jumpy and
slow?
I didn't see any of that. If you mean you have a much slower frame
rate, I didn't see a problem. But, I don't know the frame rate I had.
You do know that Saturday morning cartoons are very watchable at 12
frames per sec. And movies run at 24 fps. ;)
If your game play is affected (which I didn't experience), then fps
shouldn't be used as the timing delta.
-Troy
On the other hand, the other game ran fine for all testers who tried
it, but David said that it was equally choppy for him and said
something about it GC'ing every 2 seconds.
I captured my game play with camtasia here:
http://getgamesforfree.com/image.php?image=http%3A//getgamesforfree.com/pulpcore/verusPulpcoreGame/verusPulpcoreGame.flv
That's just a link to a video streamer on my game site.
My settings are the same as yours.
On Apr 1, 9:03 pm, Troy Cox <troylee...@gmail.com> wrote:
> What is the cache setting for temporary files in the java control
> panel?
> java control panel/General tab/Temporary Internet Files/Settings/
> compression for JAR files = 'None'
> space for temp files = 1000 mb
> Those are my settings (mostly for jnlp to play well).
> Don't know if it could affect applets.
>
> I captured my game play with camtasia here:http://getgamesforfree.com/image.php?image=http%3A//getgamesforfree.c...
If you visit the Verus page again, the framerate should be much
better, if not 60 FPS.
Thanks to everybody for looking into this!