<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Windows 11 and Appgraphics]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=1010</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=1010&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Windows 11 and Appgraphics.]]></description>
		<lastBuildDate>Fri, 15 May 2026 17:40:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4602#p4602</link>
			<description><![CDATA[<p>Jeff,</p><p>After more testing, the 64-bit seems to be the fix. Works in Win10 and Win11. There must be something in the change in Win11 as you mentioned. After finding this out, I made sure other code was compiling as 64-bit. Doing this on on program fixed some anomalous behavior on just one old laptop, Win10 but old CPU, system reports this as I5-5200U. I wondered if there was something specific about this processor that would give infinities for one computation that other systems would not. Anyway, that seems to have gone away with the 64-bit version. </p><p>Thanks,</p><p>Rod</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Fri, 15 May 2026 17:40:26 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4602#p4602</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4601#p4601</link>
			<description><![CDATA[<p>Rod,</p><p>Sorry for the long delay in my response.&nbsp; I&#039;m glad that it seems to work with a 64-bit target.&nbsp; There may have been changes to how the Windows 32-bit system works under Windows 11 64-bit, but I seriously doubt it would be the cause of what you&#039;ve described.&nbsp; So I remain a bit baffled.&nbsp; However, it is, at this point, practically impossible to obtain 32-bit Windows through any legitimate means, so I think sticking with just a 64-bit executable is safe.</p><p>Simply Fortran will repopulate the flags with those libraries.&nbsp; The &quot;32&quot; at the end of the libraries does not imply 32-bit anymore.&nbsp; Microsoft decided to keep the naming convention because, even when compiling a 64-bit executable, you&#039;re using what Microsoft was calling the &quot;Win32 API&quot; for a time.&nbsp; I don&#039;t believe they still call it the &quot;Win32 API.&quot;&nbsp; Now it is the &quot;Windows API&quot; maybe?&nbsp; But the library names held on to their 32-bit filenames despite the progress.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Tue, 12 May 2026 15:21:14 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4601#p4601</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4600#p4600</link>
			<description><![CDATA[<p>Jeff,</p><p>I think I fixed my issue, well perhaps fixed it. I still have to test other things but so far so good. </p><p>So I while checking CPU usage on task manager, I saw that the CPU usage was low even while slow plotting circles. However, while looking at task manager, I noted that the executable was still 32-bit. I created a new project to make a&nbsp; 64-bit executable and recompiled. This 64-bit executable works the same as the 32-bit did on Win10. I have briefly test the 64-bit on WIN10 and WIN11 and behaviors are consistent. More testing to follow but things look good for now.&nbsp; Any ideas on why this works in 64-bit and not in 32-bit?</p><p>Question, my original 32-bit project has all this as linker options. <br />-lappgraphics -lgdi32 -lcomdlg32 -lcomctl32 -luuid -loleaut32 -lole32 </p><p>I only included the first one in the new project and the project compiles and runs fine. Do I need anything else as compiler or linker directives other than -lappgraphics? Edit- I just noticed that the project automatically repopulated the linker strings as above. </p><p>Thanks,<br />Rod.</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Thu, 07 May 2026 15:56:07 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4600#p4600</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4598#p4598</link>
			<description><![CDATA[<p>Jeff,</p><p>I changed the circle draw to a pixel only draw and the slow down still happens. That was a good test, as now it seems to be tied with some other event or property of the code after the check box is checked. In addition, it still behaves the same after the first loop of points to be plotted; it speeds up to normal, just as before. </p><p>I scanned the code for things that might change after the check box is checked but I don&#039;t see anything obvious. </p><p>Rod</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Fri, 01 May 2026 23:57:25 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4598#p4598</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4594#p4594</link>
			<description><![CDATA[<p>Rod,</p><p>I understand what you&#039;re drawing, but I&#039;m not sure why things would slow down on Windows 11 still.&nbsp; Could you try one thing?&nbsp; What if, instead of circles, you continued just plotting single pixels at the circle center?&nbsp; I&#039;m just trying to narrow down the cause of the slowdown without access to the code.&nbsp; Does it run at &quot;full speed&quot; if you make that change?</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 01 May 2026 15:43:03 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4594#p4594</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4593#p4593</link>
			<description><![CDATA[<p>Jeff,</p><p>I don&#039;t think (at least from what I read) that setrefeshing will help me. Here is why I think that.</p><p>The program has two plotting viewports, left is the X-Y plane, right is Z-Y plane. Plotted objects, either a single pixel or circle are alternated between viewports. So what happens is if a particle position is determined to be plotted for the current time period then plottening is enabled for both viewports. Then if there is already a position from the last plot cycle already in the viewport, that position point is overwritten with a corresponding black equivalent object. Then the new position is plotted in that viewport. The program switches to the other viewport and the same action is completed there. In this way I kind of animate the temporal changes in each of the two viewports. </p><p>So from this, i am constantly swiching between the viewports. As such I don&#039;t think I want to use the setrefreshing call.</p><p>Does that make sense? </p><p>Rod</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Tue, 28 Apr 2026 00:05:16 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4593#p4593</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4592#p4592</link>
			<description><![CDATA[<p>Rod,</p><p>Sorry, I wasn&#039;t saying it&#039;s a &quot;display&quot; problem, but, rather, an issue with Microsoft&#039;s implementation of fractional scaling and its interaction with Windows GDI primitives.&nbsp; Apparently Windows 11 did change some behind-the-scenes aspects of the GDI when running under fractional scaling that has caused some slowdowns.&nbsp; It doesn&#039;t sound like they are as bad as you&#039;re reporting, though.&nbsp; The issue I was trying to nail down was if the problem was caused by fractional scaling.</p><p>You could see speed improvements by using double-buffering for the circle-drawing operations or, alternatively, experiment with <a href="https://simplyfortran.com/docs/appgraphics/windows.html">calling <em>call setrefreshing(.FALSE.)</em> while you&#039;re drawing all the circles</a>.&nbsp; Those changes would avoid the automatic window refreshes requested after each and every circle being drawn.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 24 Apr 2026 15:46:19 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4592#p4592</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4591#p4591</link>
			<description><![CDATA[<p>Jeff.</p><p>I don&#039;t think the monitor has anything to do with it. Reasoning is that as noted above, when plotting circles, if I wait for all the particles in the viewport to plot, then subsequent loops plotting is normal speed/fast. It is the first time having to plot circles that everything slows down. It has this behavior on all machines that I use.&nbsp; </p><p>Also, I have 6 machines that I remote desktop into that run the program. Two are Win11 and 4 are Win10. All have different monitors or no permanent monitor and all behave the same. </p><p>My main workstation does have a large monitor using 3440x1440 pixels. It too behaves the same as all the other RD systems. I converted this system from Win10 to Win11 earlier this year and the problem began happening on it. One system I build last year with Win11, had the issue from day one and it is without a fixed monitor; I only RD into it. My other Win11 was converted from Win10 to Win11 last fall. It is a MS Surface 7. </p><p>All remote desktop sessions are constrained to be ~1600x1000 sessions. Only the Surface uses some sort of scaling for its display. </p><p>I just have too many different displays and resolutions that have the exact same behaviors to expect it to be a display problem. </p><p>Rod</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Fri, 24 Apr 2026 13:14:20 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4591#p4591</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4590#p4590</link>
			<description><![CDATA[<p>Rod,</p><p>Does the Windows 11 system have a different monitor than your Windows 10 computer?&nbsp; Does the Windows 11 machine perhaps have a high DPI?&nbsp; The GDI (which AppGraphics uses for drawing) slows down considerably on scaled desktops, and circles (actually <a href="https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-ellipse">ellipses</a>) will slow down particularly if the screen is using any fractional scaling.&nbsp; That could be one source of the difference between 10 -&gt; 11.&nbsp; Ellipses are costly to draw.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 23 Apr 2026 17:43:05 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4590#p4590</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4589#p4589</link>
			<description><![CDATA[<p>Jeff,</p><p>Plotting single pixels is slow? Right now I have my program plotting over 7000 pixels in two windows and it takes about a second (about 14,000 pixels total). The plot cycle is repeated over and over as long as the program is open. So from my perspective, that isn&#039;t too slow. </p><p>Plotting single pixels is not the problem. The problem is transitioning from plotting pixels to circles that things slow down. Then plotting a single particle position with a circle can take 1 second; that is too long. This isn&#039;t a problem with the same code running on WIn10 or lower. It breaks in Win11. </p><p>I really would like a fix for this behavior. </p><p>Rod</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Thu, 23 Apr 2026 16:59:18 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4589#p4589</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4588#p4588</link>
			<description><![CDATA[<div class="quotebox"><cite>grogley wrote:</cite><blockquote><p>To reiterate what does happen is that if I set the plot size option while the scale requires just to plot a single pixel, then things are fine and all points within plot window plot very quickly. Now if I zoom into a point where the scale is small enough plot the actual particle size, then plotting slows down to a crawl, where it might take a couple seconds for each particle position to be plotted.</p><p>Another test case is that if I first zoom in the a scale size that is small enough to plot sizes,then check the plot size box, the same with happen where particle positions will take many seconds.</p></blockquote></div><p>How many points are you plotting, incidentally, when you see this slowdown?&nbsp; </p><p>I will point out that plotting single pixels is slow.&nbsp; The process is a bit more complex than people might realize.&nbsp; When you call <em>putpixel</em>, the following occurs:</p><p>1. Look up window data from the program&#039;s list of known open windows<br />2. From the window data, retrieve and lock the appropriate Windows <a href="https://winprog.org/tutorial/bitmaps.html">device context</a><br />3. Set the single pixel<br />4. Release the device context<br />5. Issue a redraw request for the rectangle containing the pixel (so, a 1 pixel by 1 pixel rectangle) to the Windows message loop</p><p>So drawing pixels is not particularly efficient.&nbsp; It could absolutely be improved.&nbsp; However, if you&#039;re drawing hundreds of thousands of pixels, drawing slows down quite a bit.&nbsp; Some of that overhead is AppGraphics&#039; fault in an effort to be as general as possible.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 22 Apr 2026 13:23:41 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4588#p4588</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4587#p4587</link>
			<description><![CDATA[<p>Jeff, </p><p>The latest version of the code doesn&#039;t cause the mouse pointer to behave erratically. That might have been maybe some other weird interaction with a busy system? Not sure...</p><p>To reiterate what does happen is that if I set the plot size option while the scale requires just to plot a single pixel, then things are fine and all points within plot window plot very quickly. Now if I zoom into a point where the scale is small enough plot the actual particle size, then plotting slows down to a crawl, where it might take a couple seconds for each particle position to be plotted.</p><p>Another test case is that if I first zoom in the a scale size that is small enough to plot sizes,then check the plot size box, the same with happen where particle positions will take many seconds. </p><p>Now all that said and it is still true with following caveat. As I write this I am retesting and something that I never have seen because of impatience is that, if I wait long enough, not sure how long, I think only one loop cycle to plot all the points, the plotting speed is as it should be, fast. Subsequent checks and unchecks of the plot size option work as &quot;normal&quot; with quick plotting speeds. The other option that uses plotting circles for particle size is the &quot;Plot PPV&quot; option. Once the other option works, then PPV option behaves too. Note too that the plot loop will only plot particles whose position is within the cube defined by the scale time. As such, zoomed tightly, there&nbsp; fewer particles in the plotting cube so it completes the loop more quickly than when there are more particles in the cube. </p><p>So, as it turns out, I have a work around until this gets figured out. <br />Thanks,<br />Rod</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Fri, 17 Apr 2026 16:06:58 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4587#p4587</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4586#p4586</link>
			<description><![CDATA[<p>Rod.</p><p>I suspect there is a bug in the text alignment routines.&nbsp; I&#039;m trying to sort out how text alignment is being handled since it isn&#039;t particularly straightforward.&nbsp; </p><p>I&#039;m still looking into the checkbox issues causing the mouse problems.&nbsp; It doesn&#039;t appear that your code does anything wrong, so I suspect we&#039;re getting stuck in some sort of unintended infinite loop.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 17 Apr 2026 14:21:04 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4586#p4586</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4585#p4585</link>
			<description><![CDATA[<p>Jeff,</p><p>The code for what is happening between the correct text placement and incorrect placement was posted previously. I tested the settextjustify and noticed that the first three outtext calls had no justification set for them but later ones do.</p><p>Putting in a settextjustify before the first three outtext changes lots. However, here is what I changed it too for the first three and the next couple and that puts things in the right place. </p><p> call settextjustify(LEFT_TEXT,TOP_TEXT)</p><p>Using this on WIN10 does not break the new positioning too. </p><p>I was using: <br />call settextjustify(LEFT_TEXT,CENTER_TEXT)</p><p>but that causes the problem. </p><p>I changed all instances (where it made sense) of CENTER_TEXT to TOP_TEXT and now all written text to the control viewport is in the appropriate place. </p><p>There is still something off about the information viewport. I need to<br />settextjustify(LEFT_TEXT,BOTTOM_TEXT)<br />then<br />settextjustify(LEFT_TEXT,TOP_TEXT)<br />just before writing to the informational viewport.</p><p>for that text to show all three lines of text (no specific offset needed). This again isn&#039;t broken when testing on Win10.</p><p>With those changes, I can get all the text back where they originally were. <br />Also, that fixed the placement of text in the density and phase space plots.</p><p>I really need to get a fix for particle size plot feature. </p><p>Rod</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Wed, 15 Apr 2026 18:57:34 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4585#p4585</guid>
		</item>
		<item>
			<title><![CDATA[Re: Windows 11 and Appgraphics]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4584#p4584</link>
			<description><![CDATA[<div class="quotebox"><cite>grogley wrote:</cite><blockquote><p>From what I can tell, the font for the R3.41 is the same as the previous version, However, other than the first three outtextxy calls, all the ones that follow are shifted up by about 5-6 pixels.</p></blockquote></div><p>This tidbit might be the most interesting hint as to what&#039;s happening.&nbsp; What happens between the first 3 calls to <em>outtextxy</em> and the remaining calls where the text is shifted?&nbsp; Are you performing any other drawing, changing the text justification, or creating a plot?</p><p>You might try calling <a href="https://simplyfortran.com/docs/appgraphics/text.html">settextjustify</a> with the vertical component set to <em>TOP_TEXT</em> to see if some justification setting is off and gets reset properly.&nbsp; I&#039;m not saying that there isn&#039;t a bug, just that it might show an improvement.&nbsp; If it does fix things, then we can start to look for where the justification is being modified.</p><p>I&#039;m still looking at the checkbox callback issue.&nbsp; I didn&#039;t see anything obvious in simple tests, but there may be a Windows event loop issue that gets out of hand.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 15 Apr 2026 15:27:08 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4584#p4584</guid>
		</item>
	</channel>
</rss>
