Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19124 > unrolled thread

Swing hardware acceleration?

Started bybob smith <bob@coolfone.comze.com>
First post2012-10-05 08:46 -0700
Last post2012-10-05 16:49 -0700
Articles 8 — 6 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Swing hardware acceleration? bob smith <bob@coolfone.comze.com> - 2012-10-05 08:46 -0700
    Re: Swing hardware acceleration? markspace <-@.> - 2012-10-05 09:36 -0700
    Re: Swing hardware acceleration? Jeff Higgins <jeff@invalid.invalid> - 2012-10-05 13:02 -0400
      Re: Swing hardware acceleration? Jeff Higgins <jeff@invalid.invalid> - 2012-10-05 14:22 -0400
    Re: Swing hardware acceleration? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-10-05 10:04 -0700
      Re: Swing hardware acceleration? bob smith <bob@coolfone.comze.com> - 2012-10-05 15:24 -0700
    Re: Swing hardware acceleration? Arne Vajhøj <arne@vajhoej.dk> - 2012-10-05 18:35 -0400
    Re: Swing hardware acceleration? Knute Johnson <nospam@knutejohnson.com> - 2012-10-05 16:49 -0700

#19124 — Swing hardware acceleration?

Frombob smith <bob@coolfone.comze.com>
Date2012-10-05 08:46 -0700
SubjectSwing hardware acceleration?
Message-ID<f01b0570-26ec-4b43-99dc-ab24a50e1647@googlegroups.com>
Anyone know if Swing can take advantage of hardware acceleration?

Would it be folly to try to write a serious game like Angry Birds using Swing?

[toc] | [next] | [standalone]


#19128

Frommarkspace <-@.>
Date2012-10-05 09:36 -0700
Message-ID<k4n2ab$icq$2@dont-email.me>
In reply to#19124
On 10/5/2012 8:46 AM, bob smith wrote:
> Anyone know if Swing can take advantage of hardware acceleration?
>

Probably.  That would be up to the JVM though.


> Would it be folly to try to write a serious game like Angry Birds using Swing?


Probably. Neither Android nor iOS use Swing, so what would be the point?


[toc] | [prev] | [next] | [standalone]


#19130

FromJeff Higgins <jeff@invalid.invalid>
Date2012-10-05 13:02 -0400
Message-ID<k4n3h5$rfa$1@dont-email.me>
In reply to#19124
On 10/05/2012 11:46 AM, bob smith wrote:
> Anyone know if Swing can take advantage of hardware acceleration?
  web search terms java+swing+hardware+acceleration first hit 
<http://www.oracle.com/technetwork/articles/java/javaclient-484666.html>

[toc] | [prev] | [next] | [standalone]


#19137

FromJeff Higgins <jeff@invalid.invalid>
Date2012-10-05 14:22 -0400
Message-ID<k4n86p$tt0$1@dont-email.me>
In reply to#19130
On 10/05/2012 01:02 PM, Jeff Higgins wrote:
> On 10/05/2012 11:46 AM, bob smith wrote:
>> Anyone know if Swing can take advantage of hardware acceleration?
> web search terms java+swing+hardware+acceleration first hit
> <http://www.oracle.com/technetwork/articles/java/javaclient-484666.html>

Some other sources for further information
The troubleshooting guides for JavaSE(6/7) desktop technologies.
Chet Hasse's weblog.

[toc] | [prev] | [next] | [standalone]


#19131

FromDaniel Pitts <newsgroup.nospam@virtualinfinity.net>
Date2012-10-05 10:04 -0700
Message-ID<nqEbs.2436$zI3.2079@newsfe18.iad>
In reply to#19124
On 10/5/12 8:46 AM, bob smith wrote:
> Anyone know if Swing can take advantage of hardware acceleration?
>
> Would it be folly to try to write a serious game like Angry Birds using Swing?
>
Yes, swing does take advantage of some hardware acceleration, research 
VolatileImage for more info.

[toc] | [prev] | [next] | [standalone]


#19155

Frombob smith <bob@coolfone.comze.com>
Date2012-10-05 15:24 -0700
Message-ID<f07ad4b8-3cce-4341-babe-269d9e895a79@googlegroups.com>
In reply to#19131
On Friday, October 5, 2012 12:04:20 PM UTC-5, Daniel Pitts wrote:
> On 10/5/12 8:46 AM, bob smith wrote:
> 
> > Anyone know if Swing can take advantage of hardware acceleration?
> 
> >
> 
> > Would it be folly to try to write a serious game like Angry Birds using Swing?
> 
> >
> 
> Yes, swing does take advantage of some hardware acceleration, research 
> 
> VolatileImage for more info.

Yes.  It is very fast now.  It is nice to get speed without the difficulty of OpenGL.

[toc] | [prev] | [next] | [standalone]


#19156

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-10-05 18:35 -0400
Message-ID<506f60bf$0$291$14726298@news.sunsite.dk>
In reply to#19124
On 10/5/2012 11:46 AM, bob smith wrote:
> Anyone know if Swing can take advantage of hardware acceleration?

Yes.

And more and more,

http://www.oracle.com/technetwork/articles/java/javaclient-484666.html

describes what was done in Java 6.

But I would expect the actual benefits for a typical Swing app to
be very small.

Obvious there are non-typical Swing apps as well.

> Would it be folly to try to write a serious game like Angry Birds using Swing?

I would go for JavaFX for something like this.

Arne

[toc] | [prev] | [next] | [standalone]


#19160

FromKnute Johnson <nospam@knutejohnson.com>
Date2012-10-05 16:49 -0700
Message-ID<k4nrmj$pc4$1@dont-email.me>
In reply to#19124
On 10/5/2012 8:46 AM, bob smith wrote:
> Anyone know if Swing can take advantage of hardware acceleration?
>
> Would it be folly to try to write a serious game like Angry Birds using Swing?
>

You can do pretty well without any additional hardware acceleration, 
just with the speed of Swing.  See my Asteroids game at 
http://rabbitbrush.frazmtn.com/ for an example.  It's not at the level 
of Angry Birds but I think you could write a game similar to Angry Birds 
in Swing without any trouble.

-- 

Knute Johnson

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web