Information about rendering

1 view
Skip to first unread message

Ljubisa Gligorijevic

unread,
Jun 25, 2009, 5:31:37 PM6/25/09
to DXFramework
Hello,


I have some interesting paper work to do about the way the DXFramework
renders frames.
More precisely, I have to explain how elements for displaying are
rendered:
- how the sequence of these elements for rendering is formed:
statically, dynamically... by which rule?
- are DXF renders all elements for each frame, or is used some
technique like invalidating of the region of those elements which
where changed?
- is it possible to do something to get better performance from the
DXF?

I'll appreciate any help, either the response(s) to my question(s), or
any links where I can find needed information.

Thank you very much!

Jonathan

unread,
Jun 29, 2009, 12:03:31 PM6/29/09
to DXFramework
Rendering in DXFramework is pretty simple, during the render phase you
call render on each of your sprites, the first ones you call render on
are drawn first and the later ones on top. There is no Z-buffering
mechanism. It's designed to be simple and geared for 2-D.

The back buffer can be set to clear each frame or it can be set to
stay the same. If it is cleared each frame, you must redraw everything
in the area that was cleared every frame. If not, you need to manually
control what to redraw based on changes.

There are many, many ways performance in DXF could be improved.
Performance was not one of the framework's design goals--time to
develop was emphasized instead.

Ljubisa Gligorijevic

unread,
Jul 1, 2009, 2:40:45 PM7/1/09
to DXFramework
Thank you very much for precise and helpful response!!!
Reply all
Reply to author
Forward
0 new messages