Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
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 2333 times)
0 Members and 1 Guest are viewing this topic.
Offline Abuse

JGO Ninja

Medals: 57

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.
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 Ninja

Medals: 57

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.
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.

Archive (92 views)
2017-02-27 19:41:49

Riven (83 views)
2017-02-27 17:26:59

numerical (450 views)
2017-02-21 07:32:16

numerical (455 views)
2017-02-21 07:31:46

theagentd (563 views)
2017-02-18 13:42:33

theagentd (559 views)
2017-02-18 13:35:16

h.pernpeintner (1735 views)
2017-01-24 22:39:11

h.pernpeintner (1689 views)
2017-01-24 22:38:32

Galdo (2271 views)
2017-01-12 13:44:09

Archive (2183 views)
2017-01-02 05:31:41
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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!