Damizean Posted November 25, 2006 Report Share Posted November 25, 2006 I'd say FastLoop's pretty fast since it can run 10,000 loops in 1 MMF loop That isn't speed, that is just executing 10,000 opcodes. Speed is doing so and don't drop the framerate up to 14 fps. Link to comment Share on other sites More sharing options...
Draco Icebane Posted November 25, 2006 Report Share Posted November 25, 2006 That isn't speed, that is just executing 10,000 opcodes. Speed is doing so and don't drop the framerate up to 14 fps. ... I've never known FastLoop to do any such framerate butchering unless you're being silly and running those fastloops for ten thousand loops *every* loop on an Atari. Link to comment Share on other sites More sharing options...
Damizean Posted November 25, 2006 Report Share Posted November 25, 2006 Doing 2 nested loop of 40 iterations does slows down a hell lot MMF, and that's just a common thing on any other programming language supports. Believe me, I've done my tests and it's like this. Link to comment Share on other sites More sharing options...
Draco Icebane Posted November 25, 2006 Report Share Posted November 25, 2006 Doing 2 nested loop of 40 iterations does slows down a hell lot MMF, and that's just a common thing on any other programming language supports. Believe me, I've done my tests and it's like this. So why are you nesting FastLoops? Link to comment Share on other sites More sharing options...
Damizean Posted November 25, 2006 Report Share Posted November 25, 2006 Checking a region of a grid, for example. For example, some time ago, I used nested loops for loading a Sonic 2 level layout, and the program took at least 10 seconds to run the complete loop (and it's only a 128x128 map). Link to comment Share on other sites More sharing options...
Draco Icebane Posted November 25, 2006 Report Share Posted November 25, 2006 Checking a region of a grid, for example. For example, some time ago, I used nested loops for loading a Sonic 2 level layout, and the program took at least 10 seconds to run the complete loop (and it's only a 128x128 map). I see... I tried a grid-related Fastloop once, but I didn't nest it. It was pretty basic though. I should try a level generator and see if I can get it to work without nesting loops. Link to comment Share on other sites More sharing options...
Damizean Posted November 26, 2006 Report Share Posted November 26, 2006 I see... I tried a grid-related Fastloop once, but I didn't nest it. It was pretty basic though. I should try a level generator and see if I can get it to work without nesting loops. If you know the size, it's pretty much possible. You've gotta create a loop of Width*Height, and then, the loop position is decomposed in x and y: X = LoopPosition mod Width Y = LoopPosition / Width Link to comment Share on other sites More sharing options...
LarkSS Posted November 26, 2006 Report Share Posted November 26, 2006 May I ask what the mod function does? I never understood its purpose. Link to comment Share on other sites More sharing options...
USC Posted November 26, 2006 Report Share Posted November 26, 2006 It gives you the remainder of the division. IE : 8 MOD 3 = 2. If it were 9 MOD 3, you'd get 0, since 3 goes into 9 perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts