We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Lua-to-C calls are relatively slow and should ideally be avoided in hot paths.
Drawing routines, regardles of their usage of either wgui or d2d, incur overhead from them.
wgui
d2d
A thin abstraction for D2D should be introduced, in which commands can be encode as opcodes and have accompanying parameters.
Lua scripts utilizing this new API would only need to call one function and provide it a list of commands.
d2d.atdrawd2d(function() d2d.execute_list({ { d2d.FILL_RECT, -- Opcode as integer constant 4278190080, -- Color as raw integer 0, -- Left 0, -- Top 100, -- Right 150, -- Bottom } }) end)
The text was updated successfully, but these errors were encountered:
Suggestion: include an API for generating draw lists (similar to https://docs.rs/vello/latest/vello/struct.Scene.html)
Sorry, something went wrong.
No branches or pull requests
Rationale
Lua-to-C calls are relatively slow and should ideally be avoided in hot paths.
Drawing routines, regardles of their usage of either
wgui
ord2d
, incur overhead from them.Proposal
A thin abstraction for D2D should be introduced, in which commands can be encode as opcodes and have accompanying parameters.
Lua scripts utilizing this new API would only need to call one function and provide it a list of commands.
Pros and Cons
The text was updated successfully, but these errors were encountered: