Search found 293 matches

by rocrail
Sun Mar 03, 2024 7:13 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

rocrail wrote: Sun Mar 03, 2024 7:01 am Is the wxPaintDC at every OnPaint unique for every wxWindow or is its always the same?
In the latter case I could save the wxGraphicsContext and create it only once.
Not possible: Crash.
by rocrail
Sun Mar 03, 2024 7:01 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

Is the wxPaintDC at every OnPaint unique for every wxWindow or is its always the same?
In the latter case I could save the wxGraphicsContext and create it only once.
by rocrail
Sat Mar 02, 2024 8:56 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

the display scaling factor is two decimal digits
Thanks; I corrected this.
the redraws of individual items being observable when e.g. scrolling
This effect is only under Windows; GTK and macOS are OK.
It seems that Windows does not like a lot of windows.
by rocrail
Sat Mar 02, 2024 6:19 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

The Display geometry and scaling are retrieved from wxWidgets: int displays = wxDisplay::GetCount(); char* displayText = NULL; for( int i = 0; i < displays; i++ ) { wxDisplay display((unsigned int)i); wxRect rect = display.GetGeometry(); int w = rect.width; int h = rect.height; double sf = 1.0; #if ...
by rocrail
Fri Mar 01, 2024 11:52 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

The ZIP installer has a workspace with the Demo plan.
https://wiki.rocrail.net/rocrail-snapshot/

For instructions:
https://wiki.rocrail.net/doku.php?id=rocrailonastick-en

But its very easy:
1) download
2) unzip
3) d-click on desktoplink.cmd

Click on the Desktop icon and open the demo workspace.
by rocrail
Fri Mar 01, 2024 10:53 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

It's probably too late to change your approach now, That would mean a major rewrite for the graphical part of the application. To draw all objects on the same canvas is not very object orientated but could be an alternative, but the performance penalty only pops up under Windows with scaling > 100%...
by rocrail
Fri Mar 01, 2024 10:17 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

Are you saying that every single small square here is its own window?
Only the once with a symbol on it. Empty grid squares are empty.
Depending on the object type the popup menu is different and a click or D&D behaves different.
example.jpg
by rocrail
Fri Mar 01, 2024 9:13 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

parsing the SVG during drawing instead just once when loadin if you do not read my post completely... I wrote that the SVG's are parsed and FromDIP's only one at starting up the application. Every SVG represents an object and has its own wxWindow on the main panel. Also the drawing takes place on i...
by rocrail
Fri Mar 01, 2024 6:49 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

Re: Windows Scaling 300%

Now I will test with the extra configure option for D2D: --enable-graphics-d2d
this option makes it even worse.
by rocrail
Fri Mar 01, 2024 6:45 am
Forum: Platform Related Issues
Topic: Windows Scaling 300%
Replies: 53
Views: 1616

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: 1616

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: 1616

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: 1616

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: 1616

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: 1616

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.