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

use future to fund seeds in another thread #24

Merged
merged 1 commit into from
Feb 15, 2020

Conversation

ulucs
Copy link
Contributor

@ulucs ulucs commented Feb 15, 2020

Adresses #21.

I used C++ futures to calculate raid seed in async for the overlay. Now the game does not freeze when calculating the raid seed. Also due to a bug in tesla (or a weird interaction with capturesight overlay), hitting home button and then going back to the game gives control back to the player and you can actually play the game while the seed is being calculated.

I also did the same with the applet, but async calculation there does not change anything so I didn't include it in this pull request.

For both, maybe we can include a moving "calculating" icon so that it gives some confidence that the overlay/applet has not frozen?

Copy link
Owner

@zaksabeast zaksabeast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, and thank you! 🎉 This was a good use of futures.

I also did the same with the applet, but async calculation there does not change anything so I didn't include it in this pull request.

For both, maybe we can include a moving "calculating" icon so that it gives some confidence that the overlay/applet has not frozen?

I agree; an indicator of some sort is needed in both the applet and overlay. I opened #25 for this. If you'd like to take it on, let me know! If not, that's alright too.

@zaksabeast zaksabeast merged commit 455cc65 into zaksabeast:master Feb 15, 2020
@ulucs ulucs deleted the threaded_search branch February 15, 2020 18:19
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

Successfully merging this pull request may close these issues.

None yet

2 participants