Comments (2)
@djalan you need to run Dispatcher jobs first, and only then timer tick. As otherwise render thread won't have anything to render.
But either way, we have tests for rendering into a bitmap:
For this bug we definitely need a minimal repro, as it works for me.
Note, CaptureRenderedFrame used in our tests is just a handy extension on top of ForceRenderTimerTick:
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Headless/Avalonia.Headless/HeadlessWindowExtensions.cs#L22-L24
from avalonia.
@maxkatz6 I changed my code and most of the clicks in my application work well by simply using:
Dispatcher.UIThread.RunJobs();
AvaloniaHeadlessPlatform.ForceRenderTimerTick();
On the other hand, I experience problems when we use IPageTransition like in the below image. I tried using my loop to sync over 30 times with 10_000_000 ticks, but I still can't land on the final frame when I click the next button.
I had success in other parts of my application by calling my loop 4-5 times and with 100_000 or 1_000_000 ticks, but this one below looks like a dead end.
On two rare occassions, but it is not a constant behavior, I had success looping 20x with 10_000_000 ticks. I was able to see half of page 2, but it does not happen all the time. Increasing the numbers can end up yielding less frames.
I was able to sync (with a few loop calls) another part of the application that uses page transition too. I will compare the classes tomorrow.
from avalonia.
Related Issues (20)
- Arabic diacritics rendered incorrectly HOT 2
- Visibility of Text selection handles on empty TextBoxes on Android HOT 1
- Soft Keyboard Reappearance Issue for an already focused TextBox HOT 1
- PointerMovedEvent and PointerReleasedEvent do not trigger after mouse leaves the title bar with pressed HOT 1
- Translate animation flickers control visibility when using certain easings as of v11.0.6
- Avalonia DevTools crash app on Windows on corporate laptops HOT 9
- Listbox virtualized with zoom in/out (using LayoutTransformControl) issues HOT 1
- Issue when drag one file from Finder to App HOT 5
- Website: Architecture Guide outdated and/or missing HOT 2
- [Window] Allow add Entry to System Menu
- `BindClass` method's `anchor` should be nullable
- Tunneling KeyDown Event not fired if TextBox has input Focus HOT 2
- Filtering of DataGrid bound to ObservableCollection HOT 2
- Styles regression - 11.0.x works, 11.1.x / master doesnt HOT 2
- DataBinding in XAML ignores access modifiers HOT 2
- CalendarDatePicker's dropdown popup should close when the calendar gets hidden HOT 1
- `[NotClientImplementable]` does not prevent builds HOT 8
- Mica backdrop not working when RenderingMode is set to Win32RenderingMode.Wgl HOT 4
- A way to access the raw input device states via `IInputManager` HOT 4
- SafeAreaPadding is zero when keyboard is in view HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia.