René's URL Explorer Experiment


Title: Optimize compute dispatch and buffer upload by tychedelia · Pull Request #255 · processing/libprocessing · GitHub

Open Graph Title: Optimize compute dispatch and buffer upload by tychedelia · Pull Request #255 · processing/libprocessing

X Title: Optimize compute dispatch and buffer upload by tychedelia · Pull Request #255 · processing/libprocessing

Description: Currently, every compute dispatch runs a full app.update() to be maximally pessimistic about changes to GPU resources that may not have been flushed to the GPU yet. For many particle sims which chain dispatches together this is exceedingly wasteful. This adds a new compute_dispatch_no_update which simply does the dispatch if the user is sure that there have been no un-flushed writes in the meantime. Also changes how we do buffer uploads. Previously, we would block on a full readback to sync the buffer into CPU memory. Now, we just write directly into the GPU buffer. This is fine, because reads still incur the full sync but if the user only writes but never reads we can stay on the fast path and let the CPU side buffer get out of sync.

Open Graph Description: Currently, every compute dispatch runs a full app.update() to be maximally pessimistic about changes to GPU resources that may not have been flushed to the GPU yet. For many particle sims which cha...

X Description: Currently, every compute dispatch runs a full app.update() to be maximally pessimistic about changes to GPU resources that may not have been flushed to the GPU yet. For many particle sims which cha...

Opengraph URL: https://github.com/processing/libprocessing/pull/255

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a8797b11-780e-4288-4515-f4b11718cd6e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8110:2A1605:1407DA:1A716E:6B0608C5
html-safe-noncee73842330a7e6fc3cc794706581271c742a5c598dffe8c5a838521b5501b14c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTEwOjJBMTYwNToxNDA3REE6MUE3MTZFOjZCMDYwOEM1IiwidmlzaXRvcl9pZCI6IjQ0MDMwOTk4ODU1MjA2ODUyNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0499ded0475ce379bb9ee5237cc931efa1fe0ecf0853ded5b86a2d30115536bc
hovercard-subject-tagpull_request:4672678046
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/processing/libprocessing/pull/255/files
twitter:imagehttps://avatars.githubusercontent.com/u/10366310?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10366310?s=400&v=4
og:image:altCurrently, every compute dispatch runs a full app.update() to be maximally pessimistic about changes to GPU resources that may not have been flushed to the GPU yet. For many particle sims which cha...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None47127d2f2009e000f3401193f8b4163109ac669adad0804de1ee0e6333ca7b9e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/processing/libprocessing git https://github.com/processing/libprocessing.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id1101329545
octolytics-dimension-repository_nwoprocessing/libprocessing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1101329545
octolytics-dimension-repository_network_root_nwoprocessing/libprocessing
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0760ea46a027ba5099cdef7abd54f27865eb4f44
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/libprocessing/pull/255/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F255%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F255%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=processing%2Flibprocessing
Reloadhttps://github.com/processing/libprocessing/pull/255/files
Reloadhttps://github.com/processing/libprocessing/pull/255/files
Reloadhttps://github.com/processing/libprocessing/pull/255/files
processinghttps://github.com/processing
libprocessinghttps://github.com/processing/libprocessing
Codehttps://github.com/processing/libprocessing
Issues67 (67)https://github.com/processing/libprocessing/issues
Pull requests10 (10)https://github.com/processing/libprocessing/pulls
Actionshttps://github.com/processing/libprocessing/actions
Projectshttps://github.com/processing/libprocessing/projects
Wikihttps://github.com/processing/libprocessing/wiki
Security and qualityhttps://github.com/processing/libprocessing/security
Insightshttps://github.com/processing/libprocessing/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fprocessing%2Flibprocessing%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fprocessing%2Flibprocessing%2Fissues%2Fnew%2Fchoose
catilachttps://github.com/catilac
mainhttps://github.com/processing/libprocessing/tree/main
compute-perfhttps://github.com/processing/libprocessing/tree/compute-perf
Conversation 0 https://github.com/processing/libprocessing/pull/255
Commits 1 https://github.com/processing/libprocessing/pull/255/commits
Checks 5 https://github.com/processing/libprocessing/pull/255/checks
Files changed https://github.com/processing/libprocessing/pull/255/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/255/files
Optimize compute dispatch and buffer upload https://github.com/processing/libprocessing/pull/255/files#top
Show all changes 1 commit https://github.com/processing/libprocessing/pull/255/files
30d42c2 Compute perf. tychedelia Sep 28, 2026 https://github.com/processing/libprocessing/pull/255/commits/30d42c2f2a1f374aa84279288ad8e790f9006344
Clear filters https://github.com/processing/libprocessing/pull/255/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/255/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/255/files
compute.rs https://github.com/processing/libprocessing/pull/255/files#diff-15aa57a78a1c3885b33ea90d8096585dfcd24a68ea148b7e5154480c446eb624
lib.rs https://github.com/processing/libprocessing/pull/255/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
grid.rs https://github.com/processing/libprocessing/pull/255/files#diff-29a9da72a1a076f1f0856b1c377728590ad9ad8e73ba6b44bfcbc67f84620dec
scan.rs https://github.com/processing/libprocessing/pull/255/files#diff-4cbe972d5284aa2f00aeadf9b3e5105bb3ca43b7e0ef5cedda4f7a971d67a59b
crates/processing_render/src/compute.rshttps://github.com/processing/libprocessing/pull/255/files#diff-15aa57a78a1c3885b33ea90d8096585dfcd24a68ea148b7e5154480c446eb624
View file https://github.com/processing/libprocessing/blob/30d42c2f2a1f374aa84279288ad8e790f9006344/crates/processing_render/src/compute.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/255/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/255/files#diff-15aa57a78a1c3885b33ea90d8096585dfcd24a68ea148b7e5154480c446eb624
https://github.com/processing/libprocessing/pull/255/files#diff-15aa57a78a1c3885b33ea90d8096585dfcd24a68ea148b7e5154480c446eb624
crates/processing_render/src/lib.rshttps://github.com/processing/libprocessing/pull/255/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
View file https://github.com/processing/libprocessing/blob/30d42c2f2a1f374aa84279288ad8e790f9006344/crates/processing_render/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/255/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/255/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
https://github.com/processing/libprocessing/pull/255/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
https://github.com/processing/libprocessing/pull/255/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
https://github.com/processing/libprocessing/pull/255/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
crates/processing_render/src/particles/grid.rshttps://github.com/processing/libprocessing/pull/255/files#diff-29a9da72a1a076f1f0856b1c377728590ad9ad8e73ba6b44bfcbc67f84620dec
View file https://github.com/processing/libprocessing/blob/30d42c2f2a1f374aa84279288ad8e790f9006344/crates/processing_render/src/particles/grid.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/255/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/255/files#diff-29a9da72a1a076f1f0856b1c377728590ad9ad8e73ba6b44bfcbc67f84620dec
https://github.com/processing/libprocessing/pull/255/files#diff-29a9da72a1a076f1f0856b1c377728590ad9ad8e73ba6b44bfcbc67f84620dec
https://github.com/processing/libprocessing/pull/255/files#diff-29a9da72a1a076f1f0856b1c377728590ad9ad8e73ba6b44bfcbc67f84620dec
crates/processing_render/src/particles/scan.rshttps://github.com/processing/libprocessing/pull/255/files#diff-4cbe972d5284aa2f00aeadf9b3e5105bb3ca43b7e0ef5cedda4f7a971d67a59b
View file https://github.com/processing/libprocessing/blob/30d42c2f2a1f374aa84279288ad8e790f9006344/crates/processing_render/src/particles/scan.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/255/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/255/files#diff-4cbe972d5284aa2f00aeadf9b3e5105bb3ca43b7e0ef5cedda4f7a971d67a59b
https://github.com/processing/libprocessing/pull/255/files#diff-4cbe972d5284aa2f00aeadf9b3e5105bb3ca43b7e0ef5cedda4f7a971d67a59b
https://github.com/processing/libprocessing/pull/255/files#diff-4cbe972d5284aa2f00aeadf9b3e5105bb3ca43b7e0ef5cedda4f7a971d67a59b
https://github.com/processing/libprocessing/pull/255/files#diff-4cbe972d5284aa2f00aeadf9b3e5105bb3ca43b7e0ef5cedda4f7a971d67a59b
https://github.com/processing/libprocessing/pull/255/files#diff-4cbe972d5284aa2f00aeadf9b3e5105bb3ca43b7e0ef5cedda4f7a971d67a59b
Please reload this pagehttps://github.com/processing/libprocessing/pull/255/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.