Original Post
Hey, I got this weird problem... I recently completed a course on game development which had us work with NeHe's tutorials (I was able to finish the first 21), and this was my first introduction to OpenGL, as opposed to DirectX. Well, over the last few days I was working in VB.NET, with the Tao Framework, and stumbled upon a really strange problem. At first I figured it was either .NET or Tao, but the problem shows up in NeHe's lessons (C++) as well. It's not a program-crash kind of problem, but it still urks me simply because I can't fix it or even explain WHY it happens... So here's how it goes: (I use Lesson 5 to demonstrate this, simply because it's the simplest one with semi-complex animation - also, I add a Sleep(32) command at the end of the while loop in order to get readable CPU usage curves on the Task Manager) First off, I have two computers: one development and one target. The dev is 2.3GHz 128MB-GeForce2 Dual-Core and the target is a 1GHz 32MB-Intel Single-Core. The target is the only machine weak enough to demonstrate this on as the dev barely registers it at all. I start off by starting the Task Manager and waiting until the CPU usage curves stabilize. I then run the program (lesson 5 with Sleep) in Fullscreen mode. After 30 seconds, I Window the screen (F1) and check the CPU usage. On the target, it's 0%. I then let the program run in Windowed mode and watch as it stabilizes at 20%. This is the first thing that strikes me as a bit odd. However, one can say that MAYBE my Video Card offers more optimization in Fullscreen than in Window mode (some optimizations may only be available in full screen) or MAYBE the fullscreen gets Exclusive access thus not competing with the other programs. However, that's just a newbie guess and isn't really the problem... Here's where it gets a bit Weird. As the program runs in Windowed mode, I then take Task Manager and overlap the window so that the Task Manager partially covers the Lesson5 window. The CPU usage stays at 20% UNTIL a certain portion of the window gets covered (half the window in C++ and any portion crossing the horizontal midpoint in .NET !?), at which it quickly drops down to 0% and then randomly jumps up and down between 0 and 20% in a non-stable cyclical motion, while STILL updating the screen... (there's not even any slowdown...) The one thing I hate is a quirk I can't work around. If you guys have any ideas, I'd love to hear them... -22 P.S. You said something about re-writing the lessons at some point, and it would be good if this kind of thing was addressed, since the first tutorial introduces the Fullscreen and Window mode-switch for Windows.