chevyray / coroutines Goto Github PK
View Code? Open in Web Editor NEWA simple system for running nested coroutines in C#.
License: MIT License
A simple system for running nested coroutines in C#.
License: MIT License
Hello! First off I want to say I enjoy your coroutine runner. I have tried others and they are too complicated and thanks for sharing this awesome library.
I do game development with Monogame and converted your coroutine to an UpdatableGameComponent that runs it thru Monogame Deltatime. I dont know if its is only a monogame issue but I found a bug that happens when an coroutine gets removed, the loop still uses that current index or goes above the maximum array index which causes out of bounds error.
Probably didnt see this error because only doing a few coroutines it wont show this error. It will show this error if you got hundreds of coroutines. I have one scene of snow falling. I use a coroutine so I can re-use the snow array index instead of creating a new snow. Pretty much stop the GC from going crazy.
Anyways this is what I did to fix it, it may look slightly different as your method because its thru monogame update:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.