Show us yer programming projects!
- korruptor
- Baaaaaa!

- Posts: 4291
- Joined: Sun Sep 22, 2002 10:35 am 0
- Location: Under The Northern Lights
- Contact:
Re: Show us yer programming projects!
I do that on the Amiga as well 
"Don't go into a trance boys..." :: DJ Mixes
- piku
- Sheepie Whore

- Posts: 20960
- Joined: Wed Apr 24, 2002 10:44 am 0
- Website: Http://Www.ncot.uk
- Location: Wakefield
- Contact:
Re: Show us yer programming projects!
Right, I see. So it's a kind of bar graph of which routines get called the most during each frame, combined with how much 'spare' processing time you've got left each frame?
return (0);
Re: Show us yer programming projects!
Hahaha I'd forgotten all about that, I used to do that on the Amiga too 
Re: Show us yer programming projects!
Yep, exactly. Also lets you know when in the frame you're doing various bits, if you have stuff that needs to be in sync with the video controller somehow.piku wrote:Right, I see. So it's a kind of bar graph of which routines get called the most during each frame, combined with how much 'spare' processing time you've got left each frame?
- super charlie
- Baaaaa!

- Posts: 1809
- Joined: Wed Mar 31, 2004 7:53 pm 0
- Location: Ipswich, suffolk
- Contact:
Re: Show us yer programming projects!
Ker-blammo! Getting there now 
Cheers
Charlie
Cheers
Charlie
Visit my website here to have a look at my game.
Re: Show us yer programming projects!
Same hereMuttley wrote:Pre-ST too. I used to do that on the C64.
Re: Show us yer programming projects!
Ahahaha, that's right! I used to use bits of blu-tack.
- korruptor
- Baaaaaa!

- Posts: 4291
- Joined: Sun Sep 22, 2002 10:35 am 0
- Location: Under The Northern Lights
- Contact:
Re: Show us yer programming projects!
Screenshots, innit. I'm all modern now 
"Don't go into a trance boys..." :: DJ Mixes
- evilpaul
- Baaaa!

- Posts: 811
- Joined: Wed Sep 29, 2004 2:01 pm 0
- Location: #ukscene, helsinki branch
- Contact:
Re: Show us yer programming projects!
Hahaha! Bits of post-it notes for me. That was proper profiling that was. Thaks for the reminder =)gravy wrote:Same here :) and use a easy wipe off marker on the TV to keep a record of how long this took :DMuttley wrote:Pre-ST too. I used to do that on the C64. :D
Oh.. and another use for border colouring is for showing error codes, especially during initialisation. Set border red, set up memory, set border blue, set up audio, and so on. If the prog then crashes with a solid border colour you know where it went. Still do this in my Speccy demo engne. Is it the Amiga OS that did something like this too?
[My blog - http://evilpaul.org] [My demos - http://atebit.org] [Twitter - http://twitter.com/evilpaul_atebit][My inspiration - http://bitethis.org]
Re: Show us yer programming projects!
Yeah, very very simple but effective method to gauge cpu load.Dio wrote:If that's a simple palette switch, you've just reinvented colour bars, the oldest and still best way to profile a frame-per-frame appsdetoni wrote:* Added a nifty feature which shows me CPU usage per frame, more red shown == bad.. Use multiple colours for different types of workload and you'll never need anything else.
Code: Select all
for(;;) // game loop
{
... other Game rendering/obj moving stuff ...
// restore backdrop (some lines were drawn with another colour to show cpu usage)
BG_PALETTE_SUB[0] = 13 << 10;
// ----- double buffer sprite loading/rendering -----
swiWaitForVBlank();
BG_PALETTE_SUB[0] = 31; // set backdrop to show cpu usage
... other context switching stuff
}
- evilpaul
- Baaaa!

- Posts: 811
- Joined: Wed Sep 29, 2004 2:01 pm 0
- Location: #ukscene, helsinki branch
- Contact:
Re: Show us yer programming projects!
Here you go then... border colour profiling in action! :D
Here's a Speccy sprite engine I started working on this week when I hit a dead-end with my other projects:

Three sprites on the screen, occluded by the green/black squares
Yellow is drawing the sprites
Purple is calulating the sprite
Green is drawing the colours
Two draws per frame, per sprite in case you were wondering. One to erase old, one to draw new
PS: Barney, ZXSpin doesn't save border colours correctly when you do "save current screen". At least not my version :(
Here's a Speccy sprite engine I started working on this week when I hit a dead-end with my other projects:

Three sprites on the screen, occluded by the green/black squares
Yellow is drawing the sprites
Purple is calulating the sprite
Green is drawing the colours
Two draws per frame, per sprite in case you were wondering. One to erase old, one to draw new
PS: Barney, ZXSpin doesn't save border colours correctly when you do "save current screen". At least not my version :(
[My blog - http://evilpaul.org] [My demos - http://atebit.org] [Twitter - http://twitter.com/evilpaul_atebit][My inspiration - http://bitethis.org]
Re: Show us yer programming projects!
I'll look at it - it'll be broken at the moment because of the new graphics routines. Does yours do the new 64 colour ULA emulation? If not then get this:evilpaul wrote: PS: Barney, ZXSpin doesn't save border colours correctly when you do "save current screen". At least not my version
http://sites.google.com/site/pauldunn/ZXSpin_07q.zip
Which may well have border saving fixed. Beware about saving GIFs with FLASH support, that will remove the border. Other file formats (including animgif) should be fine.
Edit: Here's a few screengrabs of the 48k Speccy doing C64 hires screens:

The last one is a digitised 24bpp colour image. The algorithm isn't perfect yet, but it's getting close. 64 Colours are really taking off now, with a few people jumping on the bandwagon - should see some games that take advantage of it soon
"Oh dear lord, I slightly soiled myself. Oxfam won’t be pleased."
- piku
- Sheepie Whore

- Posts: 20960
- Joined: Wed Apr 24, 2002 10:44 am 0
- Website: Http://Www.ncot.uk
- Location: Wakefield
- Contact:
Re: Show us yer programming projects!
http://www.vimeo.com/7608931
Finished the oh-so-fun menu code for my game engine. Now it's time for some sprites.
Finished the oh-so-fun menu code for my game engine. Now it's time for some sprites.
return (0);
Re: Show us yer programming projects!
Lookin' good.piku wrote:http://www.vimeo.com/7608931
Finished the oh-so-fun menu code for my game engine. Now it's time for some sprites.
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
- Devlin
- Baaaaa!

- Posts: 1380
- Joined: Tue Aug 02, 2005 10:53 pm 0
- XBL Gamertag: Anarkhis
- Location: Bradford, Sacred Sod of God's Own County
- Contact:
Re: Show us yer programming projects!
don't use pcx files, you'll really regret it in the future. eventually you'll reach a stage and realise that it's useless for just about everything.piku wrote:http://www.vimeo.com/7608931
Finished the oh-so-fun menu code for my game engine. Now it's time for some sprites.

