sprite poke

Pagina 2/4
1 | | 3 | 4

Van turbor

Champion (498)

afbeelding van turbor

11-02-2004, 23:15

>>
whats faster ,demention a letter like e1,e2,e3,e4 or too use the whole alfabet?
Question Question Question Question Question Question Question <<
Letters are faster then dimensions. Basicly, the longer the var name is, the slower it becomes.

So, rather use syntaxes as
A=1
B=2

then:
nTA=1
nTB=2

if it comes to speed...

Actually the later will even "not work", or more correct "act funny"
because for the msx basic interpreter nta=1 and ntb=1 are the same variable!
Basic only uses the first two chars to identify the var and the other chars are simply skipped
so
1 nta=6
2 ntb=3
3 print nta
will show 3 on your screen Smile

Van IC

Hero (557)

afbeelding van IC

11-02-2004, 23:27

You're right.. Just used to use long var names (like 'nCounter' etc..).
That's what you get when your programming Vb / Javascript too much Wink

Van ro

Scribe (4698)

afbeelding van ro

12-02-2004, 00:16

there ain't no poke..... a vpoke maybe, but a poke?! neh.

Like Guyver said: get some info about Vram/sprite positions (BASE in Basic will explain some) to know where to Vpoke your shit.
But I dunno if it is faster to vpoke than to putsprite... Well, it should be since PUTSPRITE first has to calculate the right parameters and addressesn and since you do precalcs on the VPOKE....

I could send ya som sprite docs (in dutch, good for yo!) which I wrote like 10 years ago, explaining every detail on sprites and addresses in Vram (written using ASM examples, but that's what you need when you wanna Vpoke them datastreams)

I'll check for the docs and will send them to yo mailbox, aight?!
l8er

Van IC

Hero (557)

afbeelding van IC

12-02-2004, 00:19

there ain't no poke..... a vpoke maybe, but a poke?! neh.

l8er

I know there's a vpoke.. Sprites alway contain behind the active page of the Vram. But it depend on what screen youre using.

If I'm not mistaking, Vpoking sprites on screen 5 began at &H8000... But I don't know for sure...

Van ro

Scribe (4698)

afbeelding van ro

12-02-2004, 00:24

>>there ain't no poke..... a vpoke maybe, but a poke?! neh.

l8er<<

I know there's a vpoke.. Sprites alway contain behind the active page of the Vram. But it depend on what screen youre using.

If I'm not mistaking, Vpoking sprites on screen 5 began at &H8000... But I don't know for sure...

don't talk crap, Edwin. you know it Tongue
('hidden' behind a page...pff) They are just not visible b'coz they might start at Vram line 212 which is 'off screen'... indeed, depends on your BASE settings. read the fucking docs! (sorry)

Van IC

Hero (557)

afbeelding van IC

12-02-2004, 00:26

>>>>there ain't no poke..... a vpoke maybe, but a poke?! neh.

l8er<<

I know there's a vpoke.. Sprites alway contain behind the active page of the Vram. But it depend on what screen youre using.

If I'm not mistaking, Vpoking sprites on screen 5 began at &H8000... But I don't know for sure...

<<

don't talk crap, Edwin. you know it Tongue
('hidden' behind a page...pff) They are just not visible b'coz they might start at Vram line 212 which is 'off screen'... indeed, depends on your BASE settings. read the fucking docs! (sorry)
And that's what I meant... Is U set sprites on a page and use VDP(24)=255, You'll see lots of rubish..

Van ro

Scribe (4698)

afbeelding van ro

12-02-2004, 00:30

yeah, the "rubbish" is the actual sprite parameter data..(there's 128k of Vram to put the sprite data... anywhere u wannit) Funny 'coz I'd rather have sprite data in actual RAM data (saves me some extra VRAM) but hell, I didn't made that VDP thingy...

The cool thing about being able to adjust the BASE address of the sprite attribute/parameter data is that you can switch a whole sprite set in 1 go! (have multiple sprite patterns stored in Vram)

Van IC

Hero (557)

afbeelding van IC

12-02-2004, 00:31

I found the adres.. It was &H7800 (in screen 5 that is)

But this link www.funet.fi/pub/msx/docs/hwmodsetc/msx2boek.pdf
might help..

Van anonymous

incognito ergo sum (116)

afbeelding van anonymous

12-02-2004, 00:32

You see guys, this is the story:
Grauw/TNI had some books he wanted to get rid of. So in order to help zett's steps in learning BASIC and programming in general, Grauw decided to let him pick a few books for free.

What zett in fact did was get a dozen of books (he could hardly carry them all), in my opinion taking advantage of Grauw's kindness and leaving nothing for others.

Anyway... There were really high-quality books among them that were in-depth in programming techniques and MSX architecture, so I expect zett to read those books and to learn from them.

Start at page 1, read until the end.

Zett, LEARN and stop asking for pre-chewed food!! You are not a ferengi.

Van ro

Scribe (4698)

afbeelding van ro

12-02-2004, 00:34

..hmm, that explains his big lobes... Tongue

Pagina 2/4
1 | | 3 | 4