Prop Code Reduction Tips
Vega256
Posts: 197
Hey,
I have, yet again, reached that 512 long limit. Video drivers can really tend to hog an excessive amount of memory (at least the ones I've written anyway). Does anyone have any tips for reducing code? Can using self-modifying code, wherever possible, be a memory saver?
I have, yet again, reached that 512 long limit. Video drivers can really tend to hog an excessive amount of memory (at least the ones I've written anyway). Does anyone have any tips for reducing code? Can using self-modifying code, wherever possible, be a memory saver?
Comments
Also, you can just do things in a more clever way... you'll find that its very much possible to shrink the size of you code by just optimizing how you do things. Unfortunately, this requires you to really understand all the instructions available.
Thanks,
Try and make common code into subroutines.
You can run overlays (see my overlay object in the obex)
You can use LMM (~4-5 times slower) by executing from hub (loads into cog and a small loop executes each long fetched - see the LMM thread)
Post your code, explain what it does, and ask