Shop OBEX P1 Docs P2 Docs Learn Events
tv_terminal -- 3 cogs ! — Parallax Forums

tv_terminal -- 3 cogs !

Don PomplunDon Pomplun Posts: 116
edited 2006-08-07 17:43 in Propeller 1
tv_terminal.spin uses 3 cogs (leaving "only" 5). Just curious if it was a limitation of cog speed, or cog memory that necessitated doing it this way rather than in a single cog.
-- Don

Comments

  • cgraceycgracey Posts: 14,206
    edited 2006-08-07 17:43
    Because it's using a bitmap mode, one cog is acting as a graphics coprocessor to draw the characters, and a big chunk of RAM is also being used up. There is one cog running whose job it is to rasterize the video. The third cog is the one running your program.

    A better way to go is the tv_text (I think it's called) which uses only 1 word per screen character and doesn't need the graphics coprocessing. This will save a COG and lots of RAM.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Chip Gracey
    Parallax, Inc.
Sign In or Register to comment.