Skip to content

Update softbuffer source, fix example files and add 2 new axample files #4513

Open
yagizgil wants to merge 32 commits intorust-windowing:masterfrom
yagizgil:branch1
Open

Update softbuffer source, fix example files and add 2 new axample files #4513
yagizgil wants to merge 32 commits intorust-windowing:masterfrom
yagizgil:branch1

Conversation

@yagizgil
Copy link
Copy Markdown
Contributor

  • Tested on all platforms changed

    Note: Specifically tested on Redox OS (Orbital) and Windows. The changes are isolated to the Redox backend.

  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

I have add missing scancodes for Redox.
I have switch softbuffer dependency to github master. The crates.io version is outdated and lacks the next_buffer function.
I have update examples/util/fill.rs to use new next_buffer and pixels_iter APIs, as the previus .fill() methıd has been removed in the latest softbuffer version.
I have add two new example files, and verified on redox and windows.

@yagizgil yagizgil requested a review from jackpot51 as a code owner March 15, 2026 00:42
orbclient::K_NUM_7 => (KeyCode::Numpad7, None),
orbclient::K_NUM_8 => (KeyCode::Numpad8, None),
orbclient::K_NUM_9 => (KeyCode::Numpad9, None),
orbclient::K_NUM_ASTERISK => (KeyCode::NumpadMultiply, None),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding keyboard mappings is a simple change that should be done in another PR, in my opinion

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the keyboard mappings from this PR to keep it focused. I will open a separate PR

@yagizgil yagizgil changed the title Update Orbital keyboard support and softbuffer source Update softbuffer source, fix example files and add 2 new axample files Mar 15, 2026
@madsmtm madsmtm added the S - docs Awareness, docs, examples, etc. label Mar 17, 2026
Copy link
Copy Markdown
Member

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

softbuffer v0.5 is still in the works, I'd prefer to not change Winit's examples until it's released.

What's the motivation for the two new examples? It's not clear to me whether they showcase something specific?

@madsmtm
Copy link
Copy Markdown
Member

madsmtm commented Mar 17, 2026

(#4520 might do a lot of what you'd want too btw).

@yagizgil
Copy link
Copy Markdown
Contributor Author

Üye

softbuffer v0.5 is still in the works, I'd prefer to not change Winit's examples until it's released.

What's the motivation for the two new examples? It's not clear to me whether they showcase something specific?

I added these examples to measure softbuffer's performance within winit and see the FPS improvements clearly. If you don't want new examples right now, I can remove them.

@madsmtm
Copy link
Copy Markdown
Member

madsmtm commented Mar 17, 2026

Winit isn't really performance-sensitive in that manner (it is performance-sensitive in terms of "we should correctly implement frame pacing", which we currently don't), I'd prefer for FPS counters etc. to live in Softbuffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S - docs Awareness, docs, examples, etc.

Development

Successfully merging this pull request may close these issues.

3 participants