Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#28 closed enhancement (wontfix)

Try replacing Java2D with Draw2D to improve performance

Reported by: Henrik Heimbuerger Owned by: Henrik Heimbuerger
Priority: minor Milestone: MS1: First release (1.0.0)
Component: track Version: pre-1.0
Keywords: java2d, draw2d Cc:

Description

The track view drawing is currently using Java2D, rendered as an SWT image on the SWT GC. The GEF framework offers Draw2D, which is a similar library that is optimised for use with SWT.

It could be attempted to replace Java2D with Draw2D to improve the rendering performance while still being able to rotate and zoom.

Some links:

Change History (6)

comment:1 Changed 16 years ago by Henrik Heimbuerger

Owner: changed from somebody to Henrik Heimbuerger
Status: newassigned

comment:2 Changed 16 years ago by Henrik Heimbuerger

Milestone: MS1: First usable version

comment:3 Changed 16 years ago by Henrik Heimbuerger

Status: assignedaccepted

comment:4 Changed 16 years ago by Henrik Heimbuerger

Resolution: wontfix
Status: acceptedclosed

After having a second glace at the API Reference for the Draw2D Transform class, I think it can only be used to transform certain simple objects (points).
In particular, I do not see how it could be used to rotate/scale an image.

Note however, that I think GEF/Draw2D is more than poorly documented and I might as well have missed something.

Otherwise, I don't see how we could be using Draw2D to draw the slot car tracks as long as we stick to the method of combining tile bitmaps.

Draw2D definitely should be considered again if we intend to draw the whole track 'by hand'. This would probably have a lot of advantages, including performance and cleaner display. However, it probably requires more effort (because the tiles have to be drawn once) -- at least unless #19 is even more difficult than expected.

comment:6 Changed 16 years ago by Henrik Heimbuerger

Component: unspecifiedtrack
Note: See TracTickets for help on using tickets.