Giter Club home page Giter Club logo

Comments (3)

davidgiven avatar davidgiven commented on July 18, 2024

Kinda intended? It's because there's no interrupt system, which means the cursor has to be drawn manually; undrawing it and drawing it for every character is surprisingly slow, so it only gets drawn when the system is waiting for user input.

It's not ideal as it makes the cursor vanish when the system is busy, but it is at least simple.

from cpm65.

ivop avatar ivop commented on July 18, 2024

I see. The Atari port has every operation encapsulated between hide_cursor and show_cursor. It's a lot faster than the original Atari OS console E: device, but could be sped up by doing the same as you do with the Oric port. It's mostly the calculate cursor address routine that gets called twice. Showing the cursor is only a matter of flipping bit 7 of the character. But in the 80 columns driver the whole glyph has to be inverted (6 bytes).

Another option is to draw the cursor with Player Missile Graphics (Atari's term for sprites), but that'll cost me 1kB of kilobyte aligned memory which is bit much for just a cursor.

I actually like it that the cursor is invisible during multiple screen operations without user input, as you won't see the cursor flashing around the screen, so I'm considering removing a lot of code and mimic the Oric driver in its cursor behaviour. Would that be ok?

from cpm65.

davidgiven avatar davidgiven commented on July 18, 2024

Go for it --- you know the Atari code a lot better than me...

For platforms with character mapped displays, caching the cursor address should make undrawing the cursor cheap. But drawing it does require the address calculation code, which is too expensive to call on every character. (There's a lot of overhead between the application and screen_putchar as is.) If you have a timer, one thing which could be done is that every character undraws the cursor, and then resets the timer. If, say, a tenth of a second passes without another character being drawn, the interrupt handler redraws it.

But a lot of the CP/M-65 platforms run with interrupts off for simplicity!

from cpm65.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.