Render does not set off- Printable Version +- RoboDK Forum (//m.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK bugs (//m.sinclairbody.com/forum/Forum-RoboDK-bugs) +--- Thread: Render does not set off (/Thread-Render-does-not-set-off) |
Render does not set off-Federico Orazi-10-05-2022 Good morning. I tried to disable graphical rendering with RDK.Render(False) instruction, but there seems to be no effect. How it is possible? RE: Render does not set off-Sam-10-05-2022 What are you trying to achieve, exactly? Can you provide your sample code? RE: Render does not set off-Federico Orazi-10-05-2022 我想禁用图形渲染来speed up offline programming. My sample code should be something like this: Quote: RDK.setCollisionActive(COLLISION_OFF) I also tried RDK.Render(False) instruction in example macros (such as SampleOfflineProgramming.py) without success. RE: Render does not set off-Albert-10-05-2022 What do you mean by no effect? Calling RDK.Render(False) will prevent rendering while you are doing operations. However, it will still render automatically if there was no interaction with the API for some time (approximately 100 ms, this delay can be changed in Tools-Options-Other). On the other hand, calling RDK.Render() itself will always provoke an immediate render. RE: Render does not set off-Federico Orazi-10-05-2022 Ok, I didn't know that it would automatically render after about 100 ms of delay. I need to be sure that the method prevents rendering while I'm doing operations, so I'll try to change this value in Tools-Options-Other. |