-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Update using_multiple_threads.rst #8752
Conversation
I'm sorry I missed that this wasn't pulled from master already -- if you don't mind fixing it for me this time just to make sure I don't mess it up I'd appreciate it. I will make sure to do that next time. |
Will do! |
80a18a6
to
3cfb8c5
Compare
You are awesome, thank you so much! I'm sorry, I read several of the guides on naming conventions etc but I'll do better next time. |
It's okay! It takes time to learn, it took me ages to get it right myself |
By the way, do I need to "Resolve conversation" on all of those or will those close up when the merge happens? |
You go ahead and do it when you feel done with them, it's not required but communicates, doesn't happen automatically |
I'd suggest waiting to resolve them until you've pushed to make sure you've fixed things, you need to apply the changes, it won't happen automatically |
I'm so sorry, this is my first time with this process in the browser, I thought I was accepting your suggestions 🤦♂️I also just noticed the "add to batch" option until the last resolution 😛 I believe I have now updated it all with your suggestions, please let me know if there's anything else I missed. Thanks so much for your patience with me! |
Will take a new look over the code but please squash your commits into one, if you can, see here. |
Otherwise I'd say the other examples should have their own extension code, it feels incomplete to just have this one be expanded on |
Thanks so much, this is great! I'm actually just about to finish up the other examples for this page, so I'll add those to my next commit with all of your corrections 💪 |
I'll be adding the other examples sometime today or tomorrow, so you can hold off reviewing until I do that commit. Thanks! |
Ok, all cpp demos have been added. Note that on these lines: I've added the case NOTIFICATION_WM_CLOSE_REQUEST so it will show output when the window is closed during testing in the Editor. |
08fd641
to
17e0ea1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stylewise, will go over the code itself in a while 🙂
Thanks so much! How can I make sure the spacing is done correctly -- is there a way for me to check the .rst file? I may have missed it in the documentation, but I've just been copy-pasting from Visual Studio into Notepad++ for the rst file, but do I need to replace tabs with spaces? I really appreciate all your help :) |
Not that I know of, for editing for this I'd say to make sure your editor uses spaces and not tabs |
c557bdb
to
8b159f1
Compare
Update using_multiple_threads.rst Adding C++ demos. It doesn't mirror the GDScript exactly, as I found this to be a clearer example of what the thread was doing when testing with multiple threads. All credit to "coder" from this Godot Forum thread: https://forum.godotengine.org/t/gdextension-c-async/36756/7?u=i-snyder With applied suggestions from AThousandShips code review (many thanks!!) Co-Authored-By: A Thousand Ships <[email protected]>
Ok I've tested everything here and should be good to go. I made some minor modifications:
NOTE: the Output in the Editor won't show the complete output because of this open PR: godotengine/godot#79031 The Console will show correct output. Thanks so much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this is super old, not sure if I needed to click here to finalize? :D
The GDExtension team needs to give this a pass too |
Do I need to do anything to have them take a look? I don't know how long to expect a pull request to be completed. Thanks so much for guiding me! |
Will link this PR in the developer chat, feel free to join as well! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left some minor feedback. Really great work on this!
Removed the // THREADING comment and added note to use Runtime classes in Godot 4.3+ from @padde-exe's feedback
Merged. Thanks and congrats on your first merged contribution! Thanks for incorporating all the feedback, sorry this took a while :) |
Thank you, and no worries! Make sure AThousandShips gets lots of brownie points for being so patient with me on this :D |
This is my first attempt at updating the documentation, so I apologize for any mistakes. I'm starting with adding a C++ demo to for the threading example. It doesn't mirror the GDScript exactly, as I found this to be a clearer example of what the thread was doing when testing with multiple threads. All credit to "coder" from this Godot Forum thread: https://forum.godotengine.org/t/gdextension-c-async/36756/7?u=i-snyder