High-Octane Posted June 22, 2005 Report Posted June 22, 2005 I am create 2D graphic on VB platform, off from FSUIPC offset... they render O.K., kind of shutters. I would want to have it in smooth effects, but I realize that VB timer controls limit to 55ms (18FPS). So does anyone face same situation, and improve fps? does anybody have code that can make a better fps in VB and work out okay under FSUIPC structure (.BAS)module? If so, let me know.... :wink:
Skittles Posted June 22, 2005 Report Posted June 22, 2005 Are your graphics BMP or JPG? I've had the same problem. I used GIF or TGA and the shutters got a little better. I believe the problem is VB's ability to draw the graphics. I think it sometimes takes longer than 55ms to render, which is what's causing the shutter. GIFs and TGAs I guess render a little quicker than 55ms. In addition, I believe most of the shutter is caused by the fact that VB clears the image before drawing it again. I don't know of any other solution. Joe
High-Octane Posted June 22, 2005 Author Report Posted June 22, 2005 No, I m just using me.line and me.circle function in vb.. I do know obtaining .jpg, .bmp or other graphic would generate much slower. I find its funny, when I test the line, circle function using scrollbar function, it goes smooth... but when getting replacing scrollbar into timer control it get slower, a little glitch at that point. I thought perhaps it has to be timer because of it take a while for MSFS to send data through FSUIPC ,then VB platform. and when generate a picture "autoredaw" it delays more causing a glitch. Have you ever use API such as directX? this may be much solution for it.
Skittles Posted June 22, 2005 Report Posted June 22, 2005 I tinkered with the APX for speech, but didn't get the results I wanted. Also, I don't think this forum is the best place since the problem isn't with FSUIPC. I used to have a few links to VB programming sites. Let me look around again, and I'll update this post. Joe EDIT: Try this http://www.programmersheaven.com
High-Octane Posted June 22, 2005 Author Report Posted June 22, 2005 Nah don't bother... I have tons of to VB fourm link address... Its good places to visit... but UNFORTUNATELY, no one in this forum write VB/FSUIPC program for VB that'd make it harder to explain them. This is why I posted one here.
Skittles Posted June 22, 2005 Report Posted June 22, 2005 Then I suppose only Mr. Dowson could help. I created a program that had a radar scope and little symbols for various ships using nothing but lines and circles. I had the same effect your describing. In this case, I never did find a solution. Sorry. Joe
Pete Dowson Posted June 22, 2005 Report Posted June 22, 2005 I find its funny, when I test the line, circle function using scrollbar function, it goes smooth... but when getting replacing scrollbar into timer control it get slower, a little glitch at that point. I thought perhaps it has to be timer because of it take a while for MSFS to send data through FSUIPC ,then VB platform. and when generate a picture "autoredaw" it delays more causing a glitch. If you are running on the same PC as FS the "cycle time", that of making a request to FSUIPC and getting the results back will rarely be more than even a millisecond or so -- and most of that time is process-switching. Running at 55 mSecs intervals should be no problem, though you may want to try to make the interval correspond to the FS frame rate. 55 mSecs equates to 18-19 fps, so you'd set FS's frame rate limiter. If you wanted a faster smoother rate you'd decrease the interval and increase the limit. If your processor is a Pentium with hyperthreading then your program's performance should be perfect, but this may be affected by the video card as both you and FS will be using it. On any lesser PC your stutters may be caused by FS's takeover of the processor. Again, the frame rate limiter in FS should help. Regards, Pete
High-Octane Posted June 22, 2005 Author Report Posted June 22, 2005 Pete, that makes sense.... My FS quality doesn't fit with my laptop's video driver(8mb)Perhaps that what's probably cause shutter. I should try it on a faster computer and see what effect it has take so I could determine the best for my software that I create. Thanks for the input, duly noted now. :wink:
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now