COG Consolidation...
Kaos Kidd
Posts: 614
Interesting thing to note: Cogs go fast!
The attached program doesn't work, and the reason at this point (I can't debug the code yet!):··Not enough cogs.
I only use two objects: TV_Terminal.spin and Keyboard.spin
..Keyboard.spin, which has both a SPIN and ASSEBLY cog...
..TV_Terminal.spin, which has SPIN and it starts the following objects
....TV.SPIN, which·has both·SPIN cog and an ASSEMBLY cog...
....GRAPHICS.SPIN, which has both a SPIN and ASSEMBLY cog...
GRAPHICS.SPIN·(2 Cogs) + TV.SPIN (2 Cogs) + KEYBOARD.SPIN (2 Cogs) + TV_Terminal (1 Cog) = 7 cogs for Objects
When my program runs, only the PUB Start (and it's called code) runs, nothing else because I'm out of cogs!
Ok, this·limits what can be done with the existing OBJECTS...
Ideas anyone?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
The attached program doesn't work, and the reason at this point (I can't debug the code yet!):··Not enough cogs.
I only use two objects: TV_Terminal.spin and Keyboard.spin
..Keyboard.spin, which has both a SPIN and ASSEBLY cog...
..TV_Terminal.spin, which has SPIN and it starts the following objects
....TV.SPIN, which·has both·SPIN cog and an ASSEMBLY cog...
....GRAPHICS.SPIN, which has both a SPIN and ASSEMBLY cog...
GRAPHICS.SPIN·(2 Cogs) + TV.SPIN (2 Cogs) + KEYBOARD.SPIN (2 Cogs) + TV_Terminal (1 Cog) = 7 cogs for Objects
When my program runs, only the PUB Start (and it's called code) runs, nothing else because I'm out of cogs!
Ok, this·limits what can be done with the existing OBJECTS...
Ideas anyone?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
KK: I just looked at your archive and I believe it should be using just four cogs: main, tv, graphics, keyboard.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Post Edited (Jon Williams (Parallax)) : 5/8/2006 8:22:49 PM GMT
When I get Home I'm going to DL it into the Propeller and give it a whirl...
What did you think of the app?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax