trimental

Results 27 comments of trimental

How do you know that each window is drawing at a time when other windows aren't though. I thought that's what causes the drop in fps.

Sorry I just realised that it's the swap_buffers function that blocks for vsync. I thought they were locked in a shared state between windows. 🤦

Had a look into this. Fixing the error is easy, however the bigger problem is that the tables code doesn't support images yet. I'll see if I can hack this...

@nicoburns I've tried to get nested tables to work on this branch https://github.com/trimental/inlyne/tree/nested-tables. Looks like I'm 80% there to getting it working however the the gap between the nested table...

Right now the most efficient way to upload our image data from normal cpu ram memory to gpu texture memory is to use [write_texture](https://docs.rs/wgpu/latest/wgpu/struct.Queue.html#method.write_texture) which is stores the data in...

Yep sure [here](https://github.com/gfx-rs/wgpu/blob/628a95cd1c27abce4d4ff2ffe4558cc4ef1e7fd3/wgpu/examples/skybox/main.rs#L271). I'm not sure how much memory these compressed textures save though or how to rewrite images into them.

We could move the anchor hashmap out of positioner perhaps to src renderer and have the anchor update everytime the text is layedout. That would presumably be done inside [here](https://github.com/trimental/inlyne/blob/b5900dc2268bbc8061ca180a382b8fd78358cd7e/src/text.rs#L229)

Downside would be having to pass around the anchor map everywhere text is sized, layedout, etc. But perhaps we can just stick in the TextSystem struct.

Would be happy to add any merge requests for this feature. Shouldn't be too hard as image rendering is already setup 👍

The problem is with this line here https://github.com/pop-os/cosmic-text/blob/bfb5eefbfa869915e47824877af68a5307cf301c/src/attrs.rs#L156. Seems as though it'll sacrifice all text attributes to use a font with emojis.