Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
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  
  1.5beta1 drawLine accelerated, drawPoly not?!?!  (Read 1931 times)
0 Members and 1 Guest are viewing this topic.
Offline Abuse

JGO Knight

Medals: 34

falling into the abyss of reality

« Posted 2004-04-21 18:24:55 »

While answering another persons question regarding the poor performance of drawPolygon in 1.4.x, I tested 1.5neta1 to see if it was going to fix the problem.
I expected to find 1.5 HW accelerating polygon drawing, but it appears it doesn't, which sucks Sad

However what realy suprised me was that drawLine calls *are* accelerated, yet drawPolygon calls *arn't* :-/

I can see the reason for this if the 2 are handled differently in native code, however, would an intermediary implementation of drawPolygon which used HW accelerated drawLine() not be a good idea?

I would imagine it is trivial to implement, and would greatly improve drawPolygon performance until a proper implementation can be done.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Offline MickeyB

Senior Devvie

my game will work, my game will work!

« Reply #1 - Posted 2004-04-22 01:23:32 »

Without hijacking your thread, how can you tell if something is accel or not?  Is there a list?


Current Project:
Offline Abuse

JGO Knight

Medals: 34

falling into the abyss of reality

« Reply #2 - Posted 2004-04-22 01:37:20 »

Just simple performance comparison.

1.4.2_03 I can render ~2000 lines @ 30fps.
1.5beta1 I can render ~5200 lines @ 30fps.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline trembovetski

Senior Devvie

If only I knew what I'm talking about!

« Reply #3 - Posted 2004-04-22 02:53:48 »

The 1.5 performance improvement in rendering lines is likely because of batching of Direct3D primitives (non h/v lines are rendered via d3d).

DrawPoly is rendered using GDI's :: Polyline. GDI rendering is typically accelerated when rendering to the screen, but I guess not so for offscreen images..
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

BurntPizza (8 views)
2015-10-07 02:11:23

KaiHH (12 views)
2015-10-06 20:22:20

KaiHH (11 views)
2015-10-06 19:41:59

BurntPizza (23 views)
2015-10-06 19:04:48

basil_ (44 views)
2015-09-30 17:04:40

shadowstryker (22 views)
2015-09-29 15:55:06

TheSpaceHedgehog (28 views)
2015-09-29 01:58:48

GamerC4 (54 views)
2015-09-24 21:10:38

GamerC4 (71 views)
2015-09-24 21:09:48

htuy (28 views)
2015-09-24 04:57:24
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 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‑
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!