Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Can you test this is in Win32?
Can you test this is in Win32? [message #53669] Mon, 20 April 2020 11:56 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have suspiction that Win32 GDI is not HW accelerated anymore. Anybody with Windows and a bit of time, can you please test this:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	DDUMP(GetDeviceCaps(GetDC(NULL), SHADEBLENDCAPS) & SB_PIXEL_ALPHA);
}


(If you do, please also send info about Windows version and your GPU).

Mirek

[Updated on: Wed, 22 April 2020 10:26]

Report message to a moderator

Re: Can you test this is in Win32? [message #53672 is a reply to message #53669] Mon, 20 April 2020 12:59 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

This returns zero for me. Windows 10 professional x64, Intel core i7 integrated Intel HD 4600 graphics.

Best regards,

Tom

[Updated on: Mon, 20 April 2020 13:00]

Report message to a moderator

Re: Can you test this is in Win32? [message #53675 is a reply to message #53669] Mon, 20 April 2020 14:43 Go to previous messageGo to next message
przem_kaz is currently offline  przem_kaz
Messages: 3
Registered: April 2010
Location: Poland
Junior Member
Hi Mirek,
In my case it looks like the same as for Tom1 - I've got a zero.

GetDeviceCaps(GetDC(0), 120) & 0x00000002 = 0
TIMING DarkTheme      :  8.00 ms - 135.58 us ( 8.00 ms / 59 ), min:  0.00 ns, max:  1.00 ms, nesting: 0 - 59


Win10 (1903)
CPU: Core i7-8550U
GPU: Intel(R) UHD Graphics 620

Regards
Przemek
Re: Can you test this is in Win32? [message #53694 is a reply to message #53675] Tue, 21 April 2020 22:40 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
I have exactly the same output on an HP Zbook with the laptop screen (which suspect always uses the HD Graphics 4600)
I will test with another screen tomorow since I also have an Nvdia Quadro K2100 in my Zbook
Re: Can you test this is in Win32? [message #53695 is a reply to message #53694] Wed, 22 April 2020 08:05 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks to everybody, I think at this point more testing is not necessarry. The result is that in current Windows, GDI is not HW accelereated, or at least it is not reported as such by API.

Mirek
Re: Can you test this is in Win32? [message #53696 is a reply to message #53695] Wed, 22 April 2020 09:55 Go to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hi Mirek,

Same result with my K2100 and external screen (I checked that it was really this GPU that is used)
Previous Topic: Anybody willing to look into OpenSSL Win32 compilation?
Next Topic: Small fixe for OPENBSD package organizer configuration
Goto Forum:
  


Current Time: Thu Mar 28 11:14:40 CET 2024

Total time taken to generate the page: 0.01201 seconds