Jump to content
Sign in to follow this  
José Pereira

Music Playing and cycles free for game coding

Recommended Posts

I am listen right now some songs using SAP Player.

It has on top the % of CPU...

This makes me wonder that if it is the real space use of the song?

 

I am listen one that spend 10%->12% of CPU...

If I have in PAL 35568cycles total to use, this could be the same as saying that this song would need: 3557->4268cycles and the rest would/could be used for screen gfxs. and coding?

 

Or I can't get the free Gfxs.&coding cycles this way?

 

 

 

José Pereira.

Share this post


Link to post
Share on other sites

it's probably more useful to think of that figure in terms of rasterlines rather than cycles - then if you're racing the beam and playing the music under interrupt you know that there's not so much you can do with those lines and can start to plan around them, or where in the display you are going to shove them to cause the least hassle.

Share this post


Link to post
Share on other sites

SAP Player shows usage of your PC CPU by the SAP Player.

 

6502 usage depends on the tracker and the music. One of the fastest routines you can find is my MPT player (about 1000 cycles per frame). With TMC playing four times per frame you have little 6502 time left.

 

You need to experiment with the player routine and the music. Change the background color while the routine executes and you'll see how many rasterlines it takes and how it varies as the music plays.

 

Also, there are no more than 105 cycles per rasterline available to the 6502 due to RAM refresh.

Edited by fox

Share this post


Link to post
Share on other sites

SAP Player shows usage of your PC CPU by the SAP Player.

 

6502 usage depends on the tracker and the music. One of the fastest routines you can find is my MPT player (about 1000 cycles per frame). With TMC playing four times per frame you have little 6502 time left.

 

You need to experiment with the player routine and the music. Change the background color while the routine executes and you'll see how many rasterlines it takes and how it varies as the music plays.

 

Also, there are no more than 105 cycles per rasterline available to the 6502 due to RAM refresh.

 

 

Yes, I was thinking that it couldn't just use 6%/7% of A8 in most of the Musics (and I was some Hours last Night listening all that SAP guys, games,... from the last edition).

Can you say me where I can download your MPT Player?

Share this post


Link to post
Share on other sites

A POKEY playing routine should be cycle depending, not screen depending. Just like digitising, Pokey's registers should be rewritten in a fraction of the clocking.

But, every sh.... tracker uses VBI.

 

 

Share this post


Link to post
Share on other sites

A POKEY playing routine should be cycle depending, not screen depending. Just like digitising, Pokey's registers should be rewritten in a fraction of the clocking.

But, every sh.... tracker uses VBI.

 

 

That is saying that a scanline have 114cycles x screen 312scanlines (PAL) = 35568 Total cycles

 

If you're using, for example, 30568 on the screen and coding you would have 5000cyles for the POKEY 'LDA,STA,....' Sound & Music coding?

 

 

 

P.s.- What are the Musics on A8 that plays during game playing that you think are more 'cycles using' in a screen/game coding/DLIs/PMs. also very high 'cycles using'?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...