Re: [cc65] Graphics library

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-08-13 21:39:06


On Mon, Aug 13, 2001 at 09:31:05PM +0200, groepaz wrote:
> i think a function to query all available modes would be nice to
> have... any gfx-app written in C and using a standard-gfx lib will
> turn out to be slow as hell anyways ;=D

Yes, but it's a nice starting point. Writing in C needs a lot less time, and
rewriting things in assembler once the algorithms are ok is always an option.

> as for me, i'd like to implement 2 additional gfx-modes besides
> standard hires (320x200 b/w that is) ... 80x50x4 colors (simelar to
> the 4x4 fli mode often used in demos, but a lot faster) and 40x25x256
> shades of grey (fastest mode possible on a c64... this one should
> perform somewhat fast even when wrapped into clumsy c-code ;=))

This points out another problem: Since the mode is selected at runtime, the
linker does not know, which code to include, so it has to include the code for
all available modes. Which means that all programs written to utilize
320x200x2 on the C64 will have lots of dead code linked in. One obvious
solution would be loadable drivers (as with the original BGI concept), but
this leads to several other problems (relocation, disk i/o needed, ...) so I
would prefer an easier approach if there is one. 

Regards


        Uz


--
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:41 CET