English

Forum

Back to OverviewNew post
fobbix
fobbix

High-Pitch Freq

10/14/2011, 10:27
first of all hi, im new to visionaire and very much undecided whether i should be using it to create my own point and click game or not.

Anyway about the problem, i get an high-pitch freq from my graphics card when im developing in visionaire, i am a programmer and have come across this before and it might be a bit of a niche glitch. In order to resolve the glitch you'll need to ensure your not sending thousands of draw messages to the graphics card simultaneously (you should time it properly), also the way your doing it, it should also be abit laggy and abit of a resource hog. (GPU wise)

also im experienced in programming in the linux environment so if you ever feel a need to port your program to linux then let me know.
 
fobbix
fobbix

RE: High-Pitch Freq

10/14/2011, 10:50
ill rephrase that, you should do the graphics linearly and never overlap the drawing commands, so as soon as you flush the commands to the GPU you should wait until they are 100% done until flushing the next batch (ie skip drawing a batch) coz thats what courses the high-pitch freq.
 
fobbix
fobbix

RE: High-Pitch Freq

10/16/2011, 19:47
hi again, any news on this?, i cant really use the program whilst theres an high-pitch sound. Is the code written in english or german? and would a complete timer class help? (since ive already written one)
 
Alex
Alex

RE: High-Pitch Freq

10/16/2011, 20:11
Hi, I don't know what you mean and I've never heard of this problem. Nothing is sent simultaneously to the graphics card since all draw operations are performed in the main thread. Further we're using double duffering and v-sync (so there should not be more than 50-60 frames/second depending on the display frequency). Have you updated your video driver to the latest version?
 
fobbix
fobbix

RE: High-Pitch Freq

10/16/2011, 21:54
yeah i just updated my graphics driver but still get the same problem, i know its a very unique problem but that doesnt help me any.

Anyway it could be helped by not throttling the rendering, what happens is when you start a render pass and then meet the next render pass before finishing the first pass, for normal graphics cards i guess it just ignores the request but with mine it tries to do another pass, and as such causes an high-pitch noise from the computer. I did build the computer myself so its probably something between hardware and as such might not be fixable or because im a C/++ programmer and always making segmentation faults etc. On top of that most of the time its a minor problem (mainly on loading screens, and not in-game) but too disturbing to use your program.

what does the game engine utilize game-wise? Directly to OpenGL?, or SDL or Allegro or ?, if its directly to OpenGL...

//ensure we've successfully rendered the previous scene, or block until then anyway.
glFinish();

...rendering code here...

//windows
SwapBuffers(m_dc);

...need to remember to have rendering timed aswell so it doesnt hold up the program code.

after i posted this ive noticed other people complaining about throttling the CPU aswell, so making it stick to the timed code (make the program wait until its time to render instead of just skipping. You only need to utilize the CPU 100% in games, i mean for images you will probably want to open an image-editor and what not other stuff you'll probably want to open whilst working in the game engine.

It would be a big help coz like i say ive got to live with this glitch.
 
fobbix
fobbix

RE: High-Pitch Freq

10/17/2011, 10:06
actually i would like to point out i only get this glitch/high pitch freq when my cursor is in the 'rendering area' of the visionaire editor. i cant really hear anything when in-game of the demogame. Just to make that very clear.
 
Nigec
Nigec

RE: High-Pitch Freq

10/17/2011, 20:41
What Fobbix is saying is valid, I can also hear high pitch freq noise.
I do suffer from Tinnitus which makes it easy easy to pick up high freq noise, problem is it makes the Tinnitus worse, I never really cottoned on but it has gotten worse over the last 2 or so weeks while doing the game, it makes you feel abit twitchy too
 
Alex
Alex

RE: High-Pitch Freq

10/17/2011, 21:56
The problem is known. You should have mentioned that it only occurs in the Editor. If you move the cursor outside of the canvas it will not be updated and not redraw the image. At the moment I have no time but I'll try to fix this for the next release.
 
fobbix
fobbix

RE: High-Pitch Freq

10/17/2011, 22:13
i get an high-pitch freq from my graphics card when im developing in visionaire

thanks for the information, if its written in english then perhaps i could help or if you needed any code? I guess im in no rush though since im making good progress on creating my own gaming zone, even though winsick is playing up! ive also just created my own class for accessing mysql aswell (its small but useful)
 
Alex
Alex

RE: High-Pitch Freq

10/17/2011, 22:35
I don't think that I need any code. All I need would be time...
 
fobbix
fobbix

RE: High-Pitch Freq

10/17/2011, 23:46
kk, i was just offering, like i said i have other projects/stuff to focus my attention on.

I have written my own game machine (as i call it) by the way so i have quite alot of code, such as complete timers/script parsers/etc (for the time being it is in an incomplete state - you can find the latest pre-release at www.fobbix.webs.com (on the forum and projects page) and my own website that i made recently is also www.fobbix.com but im having to do these things one step at a time, and i am doing all the work on my tod/own aswell. http://www.fobbix.com/welcome.php should help to see my current vision.

also do you have the code to compile the projects to linux or how does the build-game work? it doesnt matter too much but i have the code for dealing with xlib/opengl and getting into fullscreen mode and utilizing xlib's mouse functionality.
 
Back to OverviewNew post