我提出的申请必须执行太长的职能(称为“<>条码>>slowfunc(),这是一个问题,因为我的申请是用视频直播材料进行的。 通过执行这一职能,框架比率受到严重影响。
Is there a way to run slowfunc()
in the background without using threading? I don t necessarily need it to run every frame, but every time it finishes, I d like to examine the output. The only thing I can think of right now is to split up slowfunc()
into several "mini-functions" which would each take approximately an equal amount of time, then run one minifunction per frame. However, slowfunc()
is a relatively complex function, and I feel that there should be (hopefully is) a way to do this simply.
EDIT:我可以使用透镜,因为这一方案最终将被用于可能不支持翻新的小型机器人。 我猜测我可以使用“合作多味”。 感谢你们的帮助!