View Single Post
Old 14 January 2013, 18:43   #37
move.l #$c0ff33,throat

StingRay's Avatar
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 5,339
Originally Posted by Mrs Beanbag View Post
Can you think of an example?
Of course. Take a simple matrix rotation for example. Instead of storing the calculated matrix values in a buffer and then reading back these values in the rotation routine you use SMC, i.e. change the instructions which use the matrix values. Saves you one memory read -> faster code. There are other examples too, think dot effects or 1 instruction/pixel texture mappers etc. Another classic example for SMC are 50 FPS rotation zoomers.

Originally Posted by Mrs Beanbag View Post
Of course you need to be OS friendly in order to do this.
It's possible when the OS has been disabled too but you need some "trickery". Used it in some of my demos (Worldcharts 15/Scoopex, Tribute/Scarab and others). It does work best when the OS is completely alive though.

Last edited by StingRay; 14 January 2013 at 18:52. Reason: added rotation zoomer example
StingRay is offline  
Page generated in 0.07626 seconds with 9 queries