d2phap / dxcontrol Goto Github PK
View Code? Open in Web Editor NEW๐๏ธ A WinForms hybrid control that supports Direct2D and GDI+ drawing
License: MIT License
๐๏ธ A WinForms hybrid control that supports Direct2D and GDI+ drawing
License: MIT License
Today I ran into an issue with ImageGlass 9.0 beta 3 (wonderful piece of software, btw) where it crashes a few seconds after startup with the following exception:
Version: ImageGlass v9.0.3.1225
Release code: moon
OS: Microsoft Windows NT 10.0.22621.0 64-bit
----------------------------------------------------
Error:
The wait operation timed out.
----------------------------------------------------
System.ComponentModel.Win32Exception (258): The wait operation timed out.
at DirectN.VerticalBlankTicker.Wait(Object state) in D:\_GITHUB\@d2phap\DXControl\Source\DXControl\DirectN\DirectWrite\Extensions\VerticalBlankTicker.cs:line 129
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
This happens whether an image file is loaded or not. Clicking Continue in the exception dialog causes the application to crash to desktop. Note that I'm not able to reproduce this issue with ImageGlass 8.8.
After taking a quick look at the source, it seems that the culprit is the DXControl VerticalBlankTicker module waiting for vsync. I have a GSYNC monitor that supports a dynamic refresh rate, which affects how vsync works. Sure enough, the ImageGlass error can be bypassed by creating an application-specific profile for ImageGlass in the NVIDIA Control Panel, and changing the "Monitor Technology" from "GSYNC" to "Fixed Refresh." With this custom configuration, the application works as expected.
I'm running Windows 11 Pro 64-bit Build 22621, DirectX 12, WDDM 3.1, and the NVIDIA driver version 531.26.
I hope this helps. Let me know if I can provide any additional info.
Add horizontal and vertical scrollbars,
Mouse Wheel --> move up and down
Ctrl+Mouse Wheel --> move left and right
Alt+Mouse Wheel --> Zoom
so i can make it easier to view image details
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.