I'm really at a loss as to why this is occuring, other than to say I strongly believe it is something about the way DB itself handles setting the display mode?
The sound is clearly coming from my Tower, as turning off both my monitor and my speakers do not dampen the noise, and I can tell by simple proximity it is coming from the Tower.. I am suspecting its GPU related, but again I am at a loss as to why it is happening.
It doesn't matter what the screen mode is (Windowed, Windowed full screen desktop, full screen dedicated, etc) but when it is said above 800x600 I will start hearing this noise, until I close my DB program..
It
will go away if I set a SYNC RATE, or specify SYNC OFF but obviously that would produce complications for the speed a program might run at, etc.. And it seems using high resolution timers is more encouraged for consistent performance vs SYNC limiting as well.
For instance, I did a search for line wrapping code, as I will definitely need this for my TextRPG project.. One piece of code I tried out was from this thread
http://forum.thegamecreators.com/?m=forum_view&t=75810&b=6
Setting SYNC OFF, or a SYNC RATE clearly impacts the performance of this example (and I don't know if its because its outdated or whatever) where the wrapped text produces several lines, that are drawn slowly, as opposed to immediately just showing up as most normal stuff would..
I also had an issue with TDK's example:
http://forum.thegamecreators.com/?m=forum_view&t=122891&b=6
Pasted as is into DBpro and run, it shows a blank screen until the window itself is either moved, or I hit enter.. commenting out the SYNC ON / RATE code fixes that issue however.. The whining noise is of course there.. TDK's example will also perform faster than the previously noted example linked above.. But definitely is impacted by SYNC being declared at any value as well (on/off / rate / whatever)
Sync Off makes it slow as a lead brick also.. So I know the performance issue is likely due to my not understanding much about how SYNC works.. But it seems setting SYNC OFF, or SYNC ON: SYNC RATE is the only way DBPro will NOT make this noise in resolutions above 800x600.. And to introduce
more weirdness.. TDK's example will exhibit the whining noise even at 800x600 windowed or full screen..
I can run any other program or game, watch a video, etc.. And I never encounter this problem.. So I am really wondering if people know about this, and know what it is about DBPro's display mode methods that may be causing it - and any potential work arounds?
If its a weird bug from an old version that would be nice to know... although I -should- be fully patched to the latest non-beta version (despite my DBpro editor claiming otherwise via the help menu)..
Hope I didn't put anyone to sleep with this long post... but this is a problem that is bugging me to no end, as I can't develop a game or play test it at all with these kinds of issues happening. Hope someone has an idea or fix