tynet-lichat/shirakumo - IRC Chatlog
Search
Friday, 25th of November 2022, 10:00:50 UTC
13:02:39
selwyn
i have been asked the following: 'is it a metroidvania or more like something like classic sidescrolling zelda/castlevania?'
13:03:35
shinmera
It's an open world action RPG without any gatekeeping
14:22:57
shinmera
Now I just need about 15'000 more and we'll be looking at least somewhat alright.
14:26:01
|3b|
shinmera: i'd probably lean towards having that as an option (what is it keyed on currently?
14:26:13
shinmera
a cons of the characters.
14:27:20
shinmera
My proposition is this: make a KERNING function that takes two CHARACTERs and handle the lookup internally.
14:27:39
shinmera
That way it's at least internal.
14:28:02
shinmera
An option for it would just make things even more of a mess, rather than less :)
14:28:49
|3b|
is there a struct or something per character currently?
14:28:59
|3b|
ACTION just woke up, so remembering things is too much effort)
14:29:21
shinmera
right now each glyph has a plist of properties in a table.
14:29:31
shinmera
the kerning is a separate table indexed via a cons of the two characters.
14:29:59
|3b|
ACTION was just wondering if it would be worthwhile having a flag in that to indicate if a particular char is the first of any kerning pairs
14:30:15
shinmera
what would you do with that?
14:30:16
|3b|
(for the structs + optimized kerning hash version)
14:30:24
|3b|
decide to skip the kerning lookup
14:31:01
shinmera
I suppose that could be worth it. Sounds like a micro optimisation though vs changing the table keys to fixnums.
14:31:15
shinmera
I can add it if you like.
14:32:01
shinmera
Anything to procrastinate from having to figure out once again why layouting with labels that have line breaking requires multiple resizes to stabilise to a proper sizing information for the labels :v
14:32:21
shinmera
Alt: any takers for that?
14:51:32
shinmera
|3b|: Pushed some more stuff to the PR. The writers should be translated now to use the structs, too, and I added the kerning table optimisation.
14:51:48
shinmera
there's still some GETFs in the code, around the page table and the sdf info.
15:04:59
shinmera
If you like I can turn those into structs, too.
15:05:44
|3b|
ACTION will try to take a look at it soon, might be a few days though
15:06:00
shinmera
Will continue to operate off of my fork for now.
15:58:47
shinmera
Of course, even getting a bloody test case together for this stupid Alloy layouting issue is a nightmare
16:00:50
shinmera
Hmm, ok. I think I got it. The clip-view seems to be necessary. But why?...
16:02:28
shinmera
https://plaster.tymoon.eu/view/3539#3539
16:02:35
shinmera
will have to check tomorrow.
16:02:48
shinmera
the second block receives a lot of padding for some reason
16:03:02
shinmera
why the second? why only in the clip view? who the heck knows.
21:32:15
|3b|
added some comments to PR with fixes
21:37:21
shinmera
yea I got like twenty email popups :p
21:38:06
shinmera
currently trying to get a drawing done
21:55:28
|3b|
possibly %kerning should just accept NIL instead of testing it in the caller as the comment suggested
21:57:46
shinmera
yeah that's what I was thinking
21:58:13
|3b|
comment was wrong anyway in that it should be 0 for that case not NIL
21:59:29
|3b|
does seem to be a few ms faster when drawing 2848 or so characters in my quick (and not very good) testing
21:59:54
|3b|
and probably conses a lot less, though i didn't measure that
Friday, 25th of November 2022, 22:00:50 UTC