Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  -Dtranslaccel=true slows down AA graphics  (Read 1667 times)
0 Members and 1 Guest are viewing this topic.
Offline Mikael Grev

Junior Member




Appearance is everything!


« Posted 2004-10-11 01:51:28 »

Are anyone at Sun's Java2D team aware of this problem?

If I turn on 'translaccel' graphics primitive rendering slows down by about 30%, if it is anti-aliased.

It is a regression since it's in 1.5 (final) but not 1.4.2_05.

If it's a known problem, I won't nag about it, but if it's not I can make you a test case and investigate a little further. Maybe even have a battle with the bug parade.. Wink

I'm on:
Windows XP sp2
ATI FireGL X2 256t
AMD FX-51

Cheers,
Mikael Grev

ps. Filed this on java.sun.com/products/java-media/2d/mail/java2d-comments.html a couple of weeks ago, but there was no answer.

Mikael Grev.
www.migcalendar.com - Advanced Calendar Component
Offline trembovetski

Senior Member




If only I knew what I'm talking about!


« Reply #1 - Posted 2004-10-11 04:35:44 »

>  If I turn on 'translaccel' graphics primitive rendering slows down by about 30%, if it is anti-aliased.

If you're rendering non-accelerated primitives (and AA-rendering is one of those) to an accelerated surface, we have to use our software loops to do therendring, causing us to read-modify-write to video memory, and reading from video memory is very slow.

So we have a scheme for detecting such occasions, which we call the punting mechanism. Once we detect such event, the accelerated surface gets moved off of video memory to system memory, and software rendering to that surface is much faster.

So in your case I suspect what happens is that as a side effect of enabling translaccel this punting mechanism is disabled, so the surface you rendering to never gets punted out of video memory, and reads from video memory cause the slowdown.
The reason for disabling the punting mechanism when translaccel is enabled is a separate issue.. I don't remember it exactly, but I recall that we had to =)

So, basically we know about this problem and there's no way to fix it until we have all our rendering to accelerated surface accelerated, sorry.

BTW, we haven't seen your email on the dev list on this subject..
Offline Mikael Grev

Junior Member




Appearance is everything!


« Reply #2 - Posted 2004-10-11 04:40:43 »

> So, basically we know about this problem and there's no way to fix it until we have all our rendering to accelerated surface accelerated, sorry.

Well, hurry up then!  Wink  Wink

Cheers

Mikael Grev.
www.migcalendar.com - Advanced Calendar Component
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mikael Grev

Junior Member




Appearance is everything!


« Reply #3 - Posted 2004-10-11 04:46:52 »

> BTW, we haven't seen your email on the dev list on this subject..

Strange, I put it there I'm quite sure, after suggestions from Chet.

Anyway, this forum and javadesktop.org's forum is actually working well for these kinds of things, with good support from you guys. Can't the Swing and Java2D teams raid the bug parade guys, giving them "wedges" until they drag the bug/rfe parade into this century? Wink

Cheers,
Mikael Grev

Mikael Grev.
www.migcalendar.com - Advanced Calendar Component
Offline trembovetski

Senior Member




If only I knew what I'm talking about!


« Reply #4 - Posted 2004-10-14 05:22:03 »

Well, I've read your blog and kind of have an idea of what you think should be done to the bug parade.. File an rfe =)
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (50 views)
2014-04-15 18:08:23

BurntPizza (46 views)
2014-04-15 03:46:01

UprightPath (62 views)
2014-04-14 17:39:50

UprightPath (44 views)
2014-04-14 17:35:47

Porlus (60 views)
2014-04-14 15:48:38

tom_mai78101 (84 views)
2014-04-10 04:04:31

BurntPizza (142 views)
2014-04-08 23:06:04

tom_mai78101 (242 views)
2014-04-05 13:34:39

trollwarrior1 (201 views)
2014-04-04 12:06:45

CJLetsGame (208 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!