Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which speed solution is better? #163

Open
ghost opened this issue Nov 10, 2018 · 6 comments
Open

Which speed solution is better? #163

ghost opened this issue Nov 10, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Nov 10, 2018

the one that is a few ms faster (but the timer shows the same amount of seconds), but a few commands longer or the one that is a few ms slower, but a few commands shorter?

@hingston
Copy link
Owner

hingston commented Feb 5, 2019

I'd probably lean towards a few commands shorter just because it's a noticeable difference in the game. Anyone else have an opinion on this?

@ghost
Copy link
Author

ghost commented Mar 8, 2019

Sure, however continuously improving solution by a few ms can eventually shave off a whole second (that's basically what happened with defrag disordered solution). Also it's literally a SPEED solution, so even a small speed improvement matters in my opinion.

@NeunEinser
Copy link
Contributor

The main problem I see with this is, how can you easily, and preferably automatically, tell the exact time in ms?
Also, I think all solutions would need to be reevaluated and show the exact time in the table.

@ghost
Copy link
Author

ghost commented Mar 9, 2019

there are a few commands that take 0.016s (for this game it's an indivisible time unit). the more of these you can insert at the start of the solution before the timer starts showing that it became slower - the faster your solution is.

@NeunEinser
Copy link
Contributor

Ah, that's actually a clever way of measuring this.
I imagine, setting a mem value to some number would create that kind of delay?

@ghost
Copy link
Author

ghost commented Mar 9, 2019

yes, if myitem == myitem and telling to memory slot when it's empty also works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants