~pierrec


#127 When there are too many rectangles they are not drawn 28 days ago

Comment by ~pierrec on ~eliasnaur/gio

OK, I have tried it on an old Linux laptop and it still crashes, this time with:

i965: Failed to submit batchbuffer: Input/output error

Note. the new renderer was noticeably slower (while going to fullscreen or zooming out to display more grids).

#127 When there are too many rectangles they are not drawn 28 days ago

Comment by ~pierrec on ~eliasnaur/gio

I get the following error when trying to use the new renderer: gpu: no support for float render targets nor compute

My laptop is recent (with Intel Iris Plus Graphics 1536 Mo) so maybe I am missing something else?

#127 When there are too many rectangles they are not drawn 29 days ago

Comment by ~pierrec on ~eliasnaur/gio

I am running into this issue as well while drawing a very fine grid (lots of rectangles basically). I dont notice any slowdown up until it crashes.

#203 layout: add Flexes and Rigids a month ago

Comment by ~pierrec on ~eliasnaur/gio

This looks interesting, I did not know that it was how it used to work. I would make the new methods variadic:

func (f *Flex) Flex(gtx Context, weight float32, w ...Widget)
func (f *Flex) Rigid(gtx Context, w ...Widget)

However, we lose the alloc free property of Flex as it now needs to buffer the children, right?

#203 layout: add Flexes and Rigids a month ago

Comment by ~pierrec on ~eliasnaur/gio

Yes, I guess the core issue is not being able to specify Flex children in terms of an index. Do we need it in the core library? I would tend to say yes given the number of times I have wished for it. But YMMV.

If so, what about something like this:

type FlexByIndex struct {
...
}

type FlexElement func(layout.Context, int) layout.FlexChild

func (f *FlexByIndex) Layout(gtx layout.Context, num int, children FlexElement) layout.Dimensions {
...
}

#204 key: space key gives different result based on OS a month ago

on ~eliasnaur/gio

REPORTED RESOLVED FIXED

#204 key: space key gives different result based on OS a month ago

Ticket created by ~pierrec on ~eliasnaur/gio

A key.Event for the space bar gives different result depending on the OS: for instance " " for Linux, "Space" for Windows and macOS

#203 layout: add Flexes and Rigids a month ago

Ticket created by ~pierrec on ~eliasnaur/gio

I often run into situations where I only need Rigids or Flexes with same weight in Flex layouts.

Most of the time I need to draw widgets that are located in a slice or a map.

Having to make the slice of FlexChilds is easy but cumbersome, what about having dedicated types in the layout packaged that do it?

Something along the lines of https://git.sr.ht/~pierrec/giox/commit/2c5ee028295c046e95c45a7f776b0fb6177759ad

#198 layout Rigid with cross constraint a month ago

on ~eliasnaur/gio

REPORTED RESOLVED FIXED

#198 layout Rigid with cross constraint a month ago

Comment by ~pierrec on ~eliasnaur/gio

I now think it is not required but have another proposal for layout.Flex, which I will submit in a separate ticket.