D GUI Framework (responsive grid teaser)
Robert M. Münch
robert.muench at saphirion.com
Mon May 20 07:57:41 UTC 2019
On 2019-05-19 21:21:55 +0000, Ola Fosheim Grøstad said:
> Interesting, is each cell a separate item then?
Yes, it's organized like this:
root => grid => 1..X columns ==(each colum)==> 1..Y cells
> So assuming 3GHz cpu, we get 0.23*3e9/1600 = 431250 cycles per cell?
> That's a lot of work.
I must be fair, and add some other measurement in between. This
includes managing a 2D spatial index for hit testing too, not only
layouting.
> Are you using some kind of iterative physics based approach since you
> use hundreds of thousands of computations per cell?
It's like the browser's flex-box model.
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-announce
mailing list