News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Timing Anti Aliasing in pure GDI versus GDI+

Started by LordAdef, April 15, 2025, 10:14:29 AM

Previous topic - Next topic

sinsi

Windows 11, i7-10700, GeForce RTX 3070 Ti
Settings: circle_size:50   thickness:4     pure_gdi upscale factor:5
-----------------------------------------------------------------------
PURE GDI: 3.836800      GDI+: 3.213700
PURE GDI: 2.955800      GDI+: 2.561800
PURE GDI: 2.920600      GDI+: 2.707800
PURE GDI: 2.928900      GDI+: 2.763000
PURE GDI: 3.181700      GDI+: 2.913500
PURE GDI: 2.959300      GDI+: 2.677500
PURE GDI: 2.885200      GDI+: 2.865500
PURE GDI: 2.904300      GDI+: 3.438000
PURE GDI: 2.923400      GDI+: 2.490500
PURE GDI: 2.907100      GDI+: 2.513700

jj2007

Attached slightly modified files that make it work for both UAsm and ml.exe

Move the af.inc to the extra_files folder.

It is generally a good idea to test include files for both assemblers. UAsm is very compatible, but also a bit more powerful than MASM. Example:

works for both:   invoke GdipDrawEllipse, hGraphics, hPen, FP4(50.0), FP4(50.0), PLUS_SIZE, PLUS_SIZE

UAsm only:   invoke GdipDrawEllipse, hGraphics, hPen, 50.0, 50.0, PLUS_SIZE, PLUS_SIZE

LordAdef

Quote from: jj2007 on April 16, 2025, 07:42:18 AMAttached slightly modified files that make it work for both UAsm and ml.exe

Move the af.inc to the extra_files folder.

It is generally a good idea to test include files for both assemblers. UAsm is very compatible, but also a bit more powerful than MASM. Example:

works for both: invoke GdipDrawEllipse, hGraphics, hPen, FP4(50.0), FP4(50.0), PLUS_SIZE, PLUS_SIZE

UAsm only: invoke GdipDrawEllipse, hGraphics, hPen, 50.0, 50.0, PLUS_SIZE, PLUS_SIZE

Quote from: jj2007 on April 16, 2025, 07:42:18 AMAttached slightly modified files that make it work for both UAsm and ml.exe

Move the af.inc to the extra_files folder.

It is generally a good idea to test include files for both assemblers. UAsm is very compatible, but also a bit more powerful than MASM. Example:

works for both: invoke GdipDrawEllipse, hGraphics, hPen, FP4(50.0), FP4(50.0), PLUS_SIZE, PLUS_SIZE

UAsm only: invoke GdipDrawEllipse, hGraphics, hPen, 50.0, 50.0, PLUS_SIZE, PLUS_SIZE

Thanks JJ!! 
I only ran the .exe. Apparently ml doesn't like my UASM printf routine too. It must be very simple to fix though, just saying :skrewy:

I love UASM !