Title: Redraws Cannot Be Synchronized · Issue #4 · vpython/visual · GitHub
Open Graph Title: Redraws Cannot Be Synchronized · Issue #4 · vpython/visual
X Title: Redraws Cannot Be Synchronized · Issue #4 · vpython/visual
Description: Originally reported in the Tracker on the SourceForge project, 2000-Dec.-27, http://bit.ly/SZfe3U Without synchronizing redraws, the user will see partially updated scenes, likely in an incoherent state. This makes vpython unusable for a...
Open Graph Description: Originally reported in the Tracker on the SourceForge project, 2000-Dec.-27, http://bit.ly/SZfe3U Without synchronizing redraws, the user will see partially updated scenes, likely in an incoherent ...
X Description: Originally reported in the Tracker on the SourceForge project, 2000-Dec.-27, http://bit.ly/SZfe3U Without synchronizing redraws, the user will see partially updated scenes, likely in an incoherent ...
Opengraph URL: https://github.com/vpython/visual/issues/4
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Redraws Cannot Be Synchronized","articleBody":"Originally reported in the Tracker on the SourceForge project, 2000-Dec.-27, http://bit.ly/SZfe3U\n\n**Without synchronizing redraws, the user will see partially updated scenes, likely in an incoherent state.**\nThis makes vpython unusable for animated scenes with nontrivial computation per frame, which includes everything I intended to use it for.\n\nI would like to be able to do something like this:\n\n``` python\nscene.autoredraw = false # disable unsynchronized redraws\nwhile myUpdate( scene ):\n scene.redraw( minInterval ) # synchronized redraw between updates\n```\n\nThe original reporter suggested this:\n\n``` python\nwhile 1:\n visual.stop() # suspend the visualization thread\n doMyCalculations()\n visual.start() # resume the visualization thread\n visual.rate(30)\n```\n\n**For one easy to see example of the problem:**\nRun my code at http://pastebin.com/srsZLKWR and make it continuously advance (by clicking on a blue arrow, dragging the mouse, and then holding the button down).\nOn my computer you can see the particles update before the field arrows, and you can watch the updating of the field arrows propagate through the field.\nI can't tell how much time is spent updating the scene and how much time is spent drawing intermediate states that are not intended to be seen, but I expect eliminating the unnecessary redraws would improve performance as well as prevent drawing incoherent states.\n","author":{"url":"https://github.com/ShadSterling","@type":"Person","name":"ShadSterling"},"datePublished":"2012-07-28T22:33:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4/visual/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:044ec106-f3dc-e359-d6d1-b418f3dc0802 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD4E:14207:7D6E01E:A144113:6975BE56 |
| html-safe-nonce | b3f96b8b1fe78b34a3a7592bb0ef55778a0adf3966a43dab6def85212d7d4f88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDRFOjE0MjA3OjdENkUwMUU6QTE0NDExMzo2OTc1QkU1NiIsInZpc2l0b3JfaWQiOiI4MTM3OTgzMTA5NDI1OTA1MjM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1d17d6c9404ed1592cb1eff4e4ec3ebcff0a45dd4efdd654385816bc52285942 |
| hovercard-subject-tag | issue:5896596 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vpython/visual/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac6c1cad6246a209583ce6b0bbd8702f3f5d975f380de8b47a468b8fc4a35799/vpython/visual/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac6c1cad6246a209583ce6b0bbd8702f3f5d975f380de8b47a468b8fc4a35799/vpython/visual/issues/4 |
| og:image:alt | Originally reported in the Tracker on the SourceForge project, 2000-Dec.-27, http://bit.ly/SZfe3U Without synchronizing redraws, the user will see partially updated scenes, likely in an incoherent ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ShadSterling |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/vpython/visual git https://github.com/vpython/visual.git |
| octolytics-dimension-user_id | 1280757 |
| octolytics-dimension-user_login | vpython |
| octolytics-dimension-repository_id | 3045458 |
| octolytics-dimension-repository_nwo | vpython/visual |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3045458 |
| octolytics-dimension-repository_network_root_nwo | vpython/visual |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width