Channel 2 Posted December 9, 2003 Share Posted December 9, 2003 Does anybody know how many cycles worth of code can safely be added to Adventure between frames? Quote Link to comment Share on other sites More sharing options...
Cybergoth Posted December 9, 2003 Share Posted December 9, 2003 Hi there! You have ~7 scannlines worth of cycles during the VBLANK and ~19 during the Overscan. Greetings, Manuel Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted December 9, 2003 Share Posted December 9, 2003 Does anybody know how many cycles worth of code can safely be added to Adventure between frames? That's hard to say from just looking at the code. Use z26 with the -t parameter, play the game and enable/disable (F11/F12) tracing at various "interesting" situations. Then check the resulting .log-file and search for repeating INTIM sequences. There should be two of them each frame (top/bottom) of screen. Find the shortest sequences and calculate the free cycles. Repeat! Quote Link to comment Share on other sites More sharing options...
Channel 2 Posted December 10, 2003 Author Share Posted December 10, 2003 Thanks for the help! I think I'll go with the 7 & 19 unless I get close to using them up, which I doubt I will. Quote Link to comment Share on other sites More sharing options...
Cybergoth Posted December 10, 2003 Share Posted December 10, 2003 Hi there! I'd suggest using an emergency break. Here's some snippet of code I had in Star Fire throughout the whole development process: OverscanLoop LDA INTIM BPL OverscanNotExceeded BRK OverscanNotExceeded BNE OverscanLoop A bit brute force, I know... But it works brilliant BTW: Will move this to programming board soon... Greetings, Manuel Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted December 10, 2003 Share Posted December 10, 2003 A bit brute force, I know... But it works brilliant Yup, used something similar in Thrust too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.