| 51 | } |
| 52 | |
| 53 | bool P64::NodeGraph::Instance::update(float deltaTime) { |
| 54 | //debugf("Instance::update: %p\n", corot); |
| 55 | if(!corot)return false; |
| 56 | |
| 57 | //auto t = get_ticks(); |
| 58 | //disable_interrupts(); |
| 59 | coro_resume(corot); |
| 60 | //enable_interrupts(); |
| 61 | //t = get_ticks() - t; |
| 62 | |
| 63 | if(coro_finished(corot)) |
| 64 | { |
| 65 | coro_destroy(corot); |
| 66 | corot = nullptr; |
| 67 | if(repeatable)load(asset); |
| 68 | return false; |
| 69 | } |
| 70 | return true; |
| 71 | } |
| 72 | |
| 73 | void P64::NodeGraph::registerFunction(uint32_t strCRC32, UserFunc fn) |
| 74 | { |