superyuuki / yuukomponent

component framework for block game
2 stars 0 forks source link

Concurrent loading and Suppliers #18

Open superyuuki opened 2 years ago

superyuuki commented 2 years ago

Since component loading to the component storage pool is done as an event like object, I'm thinking it should hopefully be possible to do it concurrently. This way, we can have things like minecraft PDC deserialization or god forbid a remote server submit an async deserialization to the pool that will only add the component to the pool when the deserialization is complete. I'm not sure what side effects there will be but i figure a great concurrency learning opportunity will be to implement this and discover the various strains of side effects that can come from careless concurrency!

Additionally, global events (targetting all components) need to be submitted to the global pool as suppliers, so an individual event can be created for each component.

zoeself commented 2 years ago

@superyuuki thank you for reporting this. I'll assign someone to take care of it soon.

zoeself commented 2 years ago

@superyuuki I couldn't find any assignee for this task. This is either because there are no contributors with role DEV available or because the project does not have enough funds.

Please, make sure there is at least one available contributor with the required role and the project can afford to pay them.

superyuuki commented 2 years ago

IN PROGRESS

zoeself commented 2 years ago

@superyuuki I couldn't find any assignee for this task. This is either because there are no contributors with role DEV available or because the project does not have enough funds.

Please, make sure there is at least one available contributor with the required role and the project can afford to pay them.