Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   Swing hardware acceleration? (http://www.velocityreviews.com/forums/t953081-swing-hardware-acceleration.html)

bob smith 10-05-2012 03:46 PM

Swing hardware acceleration?
 
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?

markspace 10-05-2012 04:36 PM

Re: Swing hardware acceleration?
 
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?




Jeff Higgins 10-05-2012 05:02 PM

Re: Swing hardware acceleration?
 
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>



Daniel Pitts 10-05-2012 05:04 PM

Re: Swing hardware acceleration?
 
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.

Jeff Higgins 10-05-2012 06:22 PM

Re: Swing hardware acceleration?
 
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.

bob smith 10-05-2012 10:24 PM

Re: Swing hardware acceleration?
 
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.

Arne Vajhøj 10-05-2012 10:35 PM

Re: Swing hardware acceleration?
 
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/ar...nt-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



Knute Johnson 10-05-2012 11:49 PM

Re: Swing hardware acceleration?
 
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


All times are GMT. The time now is 06:43 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57