These are chat archives for AvaloniaUI/Avalonia

15th
Feb 2017
danwalmsley
@danwalmsley
Feb 15 2017 00:01
well before I went away
id run it all on another machine and it seemed to work
so I had assumed incorrectly it should work
but I think I may have fixed it on the machine I was working on at the time
but forgotten to commit the fix
sorry
Steven Kirk
@grokys
Feb 15 2017 00:07
hehe no problem ;)
James Walmsley
@jameswalmsley
Feb 15 2017 13:19
I have my avalonia program running fine on Windows 10, I just executed on Windows 7 and I get an empty white Window...
Has anyone else run into this?
Nikita Tsukanov
@kekekeks
Feb 15 2017 13:23
Yep, @KvanTTT has the same issue
That's why we are using Skia on win7 by default starting from yesterday
James Walmsley
@jameswalmsley
Feb 15 2017 13:23
Ok so if I enable skia all will work...
Nikita Tsukanov
@kekekeks
Feb 15 2017 13:23
You need VC++ 2015 redistributable
James Walmsley
@jameswalmsley
Feb 15 2017 13:24
ok thanks, i will install that
Nikita Tsukanov
@kekekeks
Feb 15 2017 13:24
(that's for skia, not for direct2d)
it's still a mistery, why direct2d doesn't work
James Walmsley
@jameswalmsley
Feb 15 2017 13:32
ok
I got an error saying that another version was already installed and then it crashed on startup.
I'm basically installing VS2017 on the machine now in the hope that will install what I need for Skia to work.
James Walmsley
@jameswalmsley
Feb 15 2017 15:59
installing vs2017 fixes everything for Skia to work on Windows 7.
Steven Kirk
@grokys
Feb 15 2017 17:00
does direct2d now work on the win7 machine?
Nikita Tsukanov
@kekekeks
Feb 15 2017 18:29
@grokys we have MouseButton in PointerPressedEventArgs
But not in PointerReleasedEventArgs
Oh, wait
We do
But
OnPointerReleased accepts just PointerEventArgs
José Manuel Nieto
@SuperJMN
Feb 15 2017 20:07
hey hi! I'm a bit busy!
sorry for the delay
please, contact me in Telegram, I tend to forget Gitter chats :(
In Telegram my alias is @SuperJMN
Nikita Tsukanov
@kekekeks
Feb 15 2017 20:08
I hate telegram
Someone has occupied my nickname there
José Manuel Nieto
@SuperJMN
Feb 15 2017 20:08
haha, it's useful!
and it's made by russians!
take "ke3ks"
Nikita Tsukanov
@kekekeks
Feb 15 2017 20:08
So I hate telegram in general and that person in particular

and it's made by russians

It will steal all your stuff one day

Well, telegram was made by a dissident, so it probably wouldn't
José Manuel Nieto
@SuperJMN
Feb 15 2017 20:19
haha, everything sounds so exciting that if I'm stolen, it will be well deserved
Andrew
@zezba9000
Feb 15 2017 22:33
when I leave my app minimized and come back to it, the UI doesn't render or interact until I maximize the window which seems to force something in the system to kick back in
is there any method I can call as a hack for now that force refreshes the UI?
Nikita Tsukanov
@kekekeks
Feb 15 2017 22:35
Platform? Rendering backend?
Wiesław Šoltés
@wieslawsoltes
Feb 15 2017 22:45

I have did some simple comparison of Avalonia renderer back-ends vs WPF vs WPF+SkiaSharp

WPF https://youtu.be/xP1RMn8CixY
Avalonia+Direct2D https://youtu.be/xP1RMn8CixY?t=1m22s
Avalonia+Skia https://youtu.be/xP1RMn8CixY?t=3m24s
Avalonia+Cairo https://youtu.be/xP1RMn8CixY?t=5m40s
WPF+SkiaSharp https://youtu.be/xP1RMn8CixY?t=7m33s

Avalonia+Direct2D performs very good, Avalonia+Skia does need HW acceleration for sure

The demo renders 10000 lines and when shapes are selected probably +10000 rectangles too.
Nikita Tsukanov
@kekekeks
Feb 15 2017 22:46
We had HW-acceleration with our old skia-based backend
But lost it with switching to Skia#
Andrew
@zezba9000
Feb 15 2017 22:46
@kekekeks Windows 10, default rendering backend. Latest nightly build version
Nikita Tsukanov
@kekekeks
Feb 15 2017 22:47
Oh
wrong chat
@wieslawsoltes there is a guy at https://gitter.im/xamarin/XamarinComponents
Looking for "scene graph library for SkiaSharp"
He was interested in line drawing
Wiesław Šoltés
@wieslawsoltes
Feb 15 2017 22:48
yeah I saw that and decided to make some comparison
Nikita Tsukanov
@kekekeks
Feb 15 2017 22:48
@zezba9000 try with Skia backend
It probably has something to do with corrupted render target
Andrew
@zezba9000
Feb 15 2017 22:51
@kekekeks k will do, was set to D2D
text formatting isn't the same
Nikita Tsukanov
@kekekeks
Feb 15 2017 22:52
Yep, known issue
Andrew
@zezba9000
Feb 15 2017 22:54
Skia is worse then D2D with the issue. If I minimize and come back its all black
maximizing fixes it
on Windows when you minimize a Window it sets the windows buffer size to 0x0
so its best to ignore the Window size when in a minimized state on Windows.
I know this is true from making game engine APIs
...idk if thats the issue though... might be related