-
Long time since jrmuizel/raqote#75 and I finally managed to made another attempt. https://github.com/calcit-lang/calcit-paint/blob/raqote-prototype/src/main.rs#L260-L288 but it only shew a black window on my macos. Could you help me locate the problem? The example with |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
This isn't an issue in The bug in your code is this line: https://github.com/calcit-lang/calcit-paint/blob/b2c8768b019cc8b11d38ddf087debfdbe4c78279/src/main.rs#L272 You are cloning the pixel buffer and writing to a clone that Since this isn't a bug on our end, I'll close this issue. If you would like further assistance, please create a new discussion thread! I'll be glad to help in any way I can. |
Beta Was this translation helpful? Give feedback.
-
@parasyte btw, discussion page is not enabled for this repo |
Beta Was this translation helpful? Give feedback.
-
😐 Dang, I can see the tab on my side. Thanks GitHub for not being helpful at all! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help. Maybe "Convert to Discussion"? I don't have permission on my side. |
Beta Was this translation helpful? Give feedback.
-
I'm using this toy to simulate interactive shapes built with PIXI.js https://github.com/Quamolit/phlox.calcit . I supposed I could get a cheaper version without overhead of a whole browser. The framework part is at https://github.com/calcit-lang/corokia but bad news is that interpreter is really slow for animations. As it turned out at current, winit does not respond very quickly as I move my mouse. Do you have any advices if I program the toy to respond to my mouse actions like dragging? |
Beta Was this translation helpful? Give feedback.
-
Thanks for so much details. Tried the changes you mentioned above, and it's also very fast for Pixels to render. What's the purpose using I really should try more tools for profiling. previously I tried |
Beta Was this translation helpful? Give feedback.
This isn't an issue in
pixels
, requests like this are better suited in the discussions page.The bug in your code is this line: https://github.com/calcit-lang/calcit-paint/blob/b2c8768b019cc8b11d38ddf087debfdbe4c78279/src/main.rs#L272
You are cloning the pixel buffer and writing to a clone that
pixels
will never be able to see. Delete this line and it shows white text on a black background. (I do not know what the expected result is, but this is better than a pure black screen!)Since this isn't a bug on our end, I'll close this issue. If you would like further assistance, please create a new discussion thread! I'll be glad to help in any way I can.