These are chat archives for ZaneDubya/UltimaXNA

24th
Nov 2016
Zane Wagner
@ZaneDubya
Nov 24 2016 12:18
I'm replacing the mouse picking - because @hifi is right, we shouldn't be calling texture.GetData 10s of times per frame.
Toni Spets
@hifi
Nov 24 2016 12:18
my approach was to generate a boolean array for hit testing
that particular implementation wasn't pretty but it was fast and worked well enough
Zane Wagner
@ZaneDubya
Nov 24 2016 12:19
That was my first solution! Then I got a little over ambitious :P
Zane Wagner
@ZaneDubya
Nov 24 2016 12:42
It now stores non-transparent pixels as spans. The performance hit from the extra math is tiny.
Zane Wagner
@ZaneDubya
Nov 24 2016 13:34
And the benefit from having all the mouse picking data in one small location is - I assume - a huge improvement ;)
Toni Spets
@hifi
Nov 24 2016 17:11
well, the kittens will thank you for not killing them for one
I still probably need to keep the texture conversion hack in place until MG is fixed
will look into syncing UltimaMono again soon
and I find it a bit funny people were like 'fuck yes, let's make UXNA portable!11' in the original issue and not a single person has contributed anything to UltimaMono ;)
Zane Wagner
@ZaneDubya
Nov 24 2016 19:52
Lol
It's hard and people are busy!
I was looking at FNA this week. Just a brief overview - not as deep as my dive into MG last year (which was itself only surface level) - but my feeling is that FNA would be easier to move to.
I know FNA is cross compatible with nix and mac. Idk about mobile. One of the huge benefits of MG is iphone/android compatibility.
Not that uxna would take advantage of that.
Valentyn Andrushko
@AimedNuu
Nov 24 2016 21:43
You sound u're being active again