René's URL Explorer Experiment


Title: feat(ffi): add processing_poll_events for external event loop integration by pepc84 · Pull Request #237 · processing/libprocessing · GitHub

Open Graph Title: feat(ffi): add processing_poll_events for external event loop integration by pepc84 · Pull Request #237 · processing/libprocessing

X Title: feat(ffi): add processing_poll_events for external event loop integration by pepc84 · Pull Request #237 · processing/libprocessing

Description: Summary Adds processing_poll_events() to the C FFI, which ticks Bevy's app one frame. This lets embedders that manage their own window and event loop advance libprocessing's internal state each frame without using the built-in runner. Motivation When embedding libprocessing into a native host that drives its own event loop, there is no way to tick the Bevy app from outside. The Python bindings have poll_events() on the Surface struct but this is not exposed over C. The window system the host uses does not matter. The host creates a WebGPU surface via processing_surface_create, passes native window and display handles, and drives the frame loop itself. processing_poll_events is what advances Bevy's ECS and render world each frame in that model. Usage processing_init(); uint64_t surface = processing_surface_create_x11(window, display, w, h, scale); uint64_t gfx = processing_graphics_create(surface, w, h); while (running) { running = processing_poll_events(); processing_begin_draw(gfx); // draw calls processing_end_draw(gfx); } Changes Add processing_poll_events() -> bool to processing_ffi/src/lib.rs Add processing_core as a direct dependency of processing_ffi since app_mut is not re-exported through processing::prelude Notes This builds on top of #236 since that fix is required for the crate to compile on Linux.

Open Graph Description: Summary Adds processing_poll_events() to the C FFI, which ticks Bevy's app one frame. This lets embedders that manage their own window and event loop advance libprocessing's internal state ...

X Description: Summary Adds processing_poll_events() to the C FFI, which ticks Bevy's app one frame. This lets embedders that manage their own window and event loop advance libprocessing's interna...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:7302a706-84f4-2127-8145-3245987321ad
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9E40:572F9:EA1B0:13E8F3:6B060EAA
html-safe-noncefce6f22e147a82a8e888d7dd47f936d040d4069f437bf40108dd296a66c13c2b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTQwOjU3MkY5OkVBMUIwOjEzRThGMzo2QjA2MEVBQSIsInZpc2l0b3JfaWQiOiIzMzY3ODgwNjQ5Njk1Njk0NTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac42d94aab8707434d0bb0605468a4b4e0197d0a80b8c6704a324e33859b64e7c2
hovercard-subject-tagpull_request:4554647096
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/237/files
twitter:imagehttps://avatars.githubusercontent.com/u/57294729?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/57294729?s=400&v=4
og:image:altSummary Adds processing_poll_events() to the C FFI, which ticks Bevy's app one frame. This lets embedders that manage their own window and event loop advance libprocessing's internal state ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee58943f0186bb8d97b217393c2724a49ab47e4aefefc43595a90fa04699066c9
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
release23517473abc6d5da019b4958bd421644e98a418b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/libprocessing/pull/237/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F237%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%2F237%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/237/files
Reloadhttps://github.com/processing/libprocessing/pull/237/files
Reloadhttps://github.com/processing/libprocessing/pull/237/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
pepc84https://github.com/pepc84
processing:mainhttps://github.com/processing/libprocessing/tree/main
pepc84:feat/ffi-poll-eventshttps://github.com/pepc84/libprocessing/tree/feat/ffi-poll-events
Conversation 2 https://github.com/processing/libprocessing/pull/237
Commits 3 https://github.com/processing/libprocessing/pull/237/commits
Checks 5 https://github.com/processing/libprocessing/pull/237/checks
Files changed https://github.com/processing/libprocessing/pull/237/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/237/files
feat(ffi): add processing_poll_events for external event loop integration https://github.com/processing/libprocessing/pull/237/files#top
Show all changes 3 commits https://github.com/processing/libprocessing/pull/237/files
b398b97 fix(ffi): pass transparent=false to all surface_create_* calls pepc84 Sep 17, 2026 https://github.com/processing/libprocessing/pull/237/commits/b398b97e9bb5c80b309ddff55a192f96b106d67b
4e8a8f7 feat(ffi): add processing_poll_events for external event loop integra… pepc84 Sep 17, 2026 https://github.com/processing/libprocessing/pull/237/commits/4e8a8f73942458700ec90566f751a8ce3e7c84d3
604ea1d Merge branch 'main' into feat/ffi-poll-events tychedelia Sep 26, 2026 https://github.com/processing/libprocessing/pull/237/commits/604ea1d47c0053336efd98713bc9ef6777c6e59d
Clear filters https://github.com/processing/libprocessing/pull/237/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/237/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/237/files
Cargo.lock https://github.com/processing/libprocessing/pull/237/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://github.com/processing/libprocessing/pull/237/files#diff-6e77797f3504ef4f0bfd9c1f60bc3fe4a12c59e979907f05af336ee38e8ff2c9
lib.rs https://github.com/processing/libprocessing/pull/237/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
Cargo.lockhttps://github.com/processing/libprocessing/pull/237/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
View file https://github.com/pepc84/libprocessing/blob/604ea1d47c0053336efd98713bc9ef6777c6e59d/Cargo.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/processing/libprocessing/pull/237/files
crates/processing_ffi/Cargo.tomlhttps://github.com/processing/libprocessing/pull/237/files#diff-6e77797f3504ef4f0bfd9c1f60bc3fe4a12c59e979907f05af336ee38e8ff2c9
View file https://github.com/pepc84/libprocessing/blob/604ea1d47c0053336efd98713bc9ef6777c6e59d/crates/processing_ffi/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/237/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/237/files#diff-6e77797f3504ef4f0bfd9c1f60bc3fe4a12c59e979907f05af336ee38e8ff2c9
https://github.com/processing/libprocessing/pull/237/files#diff-6e77797f3504ef4f0bfd9c1f60bc3fe4a12c59e979907f05af336ee38e8ff2c9
crates/processing_ffi/src/lib.rshttps://github.com/processing/libprocessing/pull/237/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
View file https://github.com/pepc84/libprocessing/blob/604ea1d47c0053336efd98713bc9ef6777c6e59d/crates/processing_ffi/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/237/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/237/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
Please reload this pagehttps://github.com/processing/libprocessing/pull/237/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.