Search found 299 matches

by rocrail
Fri Mar 01, 2024 6:45 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

ONEEYEMAN wrote: Thu Feb 29, 2024 2:47 pm Hi,
I think for MSVC it is ON by default...

Thank you.
D2D is for Windows only and if its default activated the option should be --disable-graphics-d2d, to enable an option which is per default enabled is weird.
by rocrail
Fri Mar 01, 2024 6:36 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

I'm using wxAutoBufferedPaintDC as start point in the OnPaint(). Then the paint function, which becomes a DC pointer as one off its parameters, GC: gc = wxGraphicsContext::Create((wxPaintDC&)dc); A simple line is coded like this: (The coordinates are already converted by FromDIP() at application...
by rocrail
Thu Feb 29, 2024 9:04 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

If so, did you start using FromDIP() also for pen widths? If so, I would try to comment out this call, leaving the lines at 1 width to see if this is the culprit. this has no influence on performance. The symbols in the Rocrail plan are SVG's and contains of polylines, lines, circles and rectangles...
by rocrail
Thu Feb 29, 2024 6:29 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

The FromDIP() path is on all Platforms the same, also on GTK and Mac where this has no affect. Using 100% Display scaling with the FromDIP() path under Windows it performs OK. (Windows is graphically always the slowest of all.) My Windows ARM64 tests are running on a Apple M2. On the same Mac M2 run...
by rocrail
Thu Feb 29, 2024 5:20 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

Are you testing with display scaling > 100% ?
If not, your tests will not help in this theme.

The higher the display scaling the lower the graphics performance under Windows.
Just make the same test with 200%.
by rocrail
Thu Feb 29, 2024 4:16 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

Using FromDIP and scaling > 100% under Windows is a show stopper.
The user tested it and is very disappointed of the graphics performance.
When Scaling 100% the performance OK, also with FromDIP, but you need a magnifying glass.

Linux GTK and macOS run under the same condition smooth and fast.
by rocrail
Thu Feb 29, 2024 2:20 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

Maybe the wxWidgets build needs:

Code: Select all

./configure --help | grep Direct
  --enable-graphics-d2d   use Direct2D-based graphics context
  
by rocrail
Thu Feb 29, 2024 12:02 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

Just tested with a real Intel, G4400 3.3GHz 8GB Ram, PC 64bit Windows 11.
D2D is also slower as the standard wxGraphicsContext.
by rocrail
Thu Feb 29, 2024 11:23 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

I am quite surprised that D2D is slower than GDI+. Is it really on an actual computer, or did you test only under a VM?
I'm testing Windows ARM64 in UTM; Its virtualized and not emulated.
by rocrail
Thu Feb 29, 2024 11:18 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

doublemax wrote: Thu Feb 29, 2024 11:05 am If you're using the default wxGraphicsContext in your code, try the Direct2D renderer under Windows.
thanks, I just tried it and is very slow...

Using

Code: Select all

 gc = wxGraphicsContext::Create((wxPaintDC&)dc);
is much better in performance.
by rocrail
Thu Feb 29, 2024 11:01 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

In case of 100% scaling the rendering is relative 'fast' for Windows.
But if scaling > 100% Windows needs much more time for rendering. This is a Windows issue and not a wxWidgets one.
I can only recommend Linux or Mac for high resolution displays.
by rocrail
Wed Feb 28, 2024 3:10 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

I have added today the FromDIP() function and it looks good.
Thanks all for your help.
Windows-200.jpg
by rocrail
Wed Feb 28, 2024 6:25 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

In the Windows screenshot there is a clock with a big text that seems to be scaled correctly. What's different about this text? The clock is in pixels... I must convert this according this page: https://docs.wxwidgets.org/stable/overview_high_dpi.html PS: GTK does the scaling as macOS does, so this...
by rocrail
Tue Feb 27, 2024 6:21 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

As doublemax said, it is likely that your drawing code is not DPI-aware (i.e., may sometimes use physical instead of logical pixels), see e.g. https://docs.wxwidgets.org/stable/overview_high_dpi.html if so, why is this problem only with Windows? And yes the Windows 11 is ARM64 running in UTM on a M...
by rocrail
Tue Feb 27, 2024 5:33 pm
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 12134

Re: Windows Scaling 300%

The manifest looks like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0' xmlns:asmv3='urn:schemas-microsoft-com:asm.v3'> <assemblyIdentity version="0.64.1.0" processorArchite...