Emuforums.com

Go Back   Emuforums.com > Handheld Emulation > Visualboy Advance Discussion
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old July 18th, 2005   #1 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
>> post bug report and your suggestions in this thread <<

Quote:

VBA smooth v6.4

feature added:
- add an entry forceRenderMethod=1 in vba.ini to force using DirectDraw driver (thanks awi's suggestion)
- force to stop emulation before switching sound emulation on/off
- add an entry saveMoreCPU=1 in vba.ini for slow computer to save more CPU power

bug fix:

[mikoxc] when sound is disable, vba load a game then crashed
- fix a bug in PCM interpolation module

[mikoxc] VBA run a game with sound disable, after load a real-time save file, VBA crashed
- fix another bug in PCM interpolation module

[bohdy] 6.3 still runs at half framerate in automatic mode, just like if frameskip 1 was selected.
- fix a bug in automatic frame rate control

[Squaresoft74] On the top and left sides of the screen i get blue lines that weren't there with previous builds.
- not crop a pixel around the border of output image

source code and compiled binary can download from:
http://vbasmooth.emulation64.com/


Post bug report and your suggestions in this thread, your participate will make VBA smooth better in every release.

Last edited by suanyuan; September 19th, 2005 at 10:51..
suanyuan is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old July 23rd, 2005   #2 (permalink)
Waaa :(
 
Join Date: Oct 2003
Location: Eilat
Posts: 98
Quote:
Originally Posted by suanyuan
I change my frame control code a little bit; try to keep running at 60 FPS smoothly.

(1) When CPU core speed less than 95% I drop frames, and when CPU core speed more than 105% I increase frames to render.

(2) At the end of frame rendering, I sleep a short period of time if the emulator is running too fast.

The result is quite acceptable, no matter use hq2x filter or no filter, the emulator can adjust to keep almost 100% CPU speeds to run.

I attached screen captures of setting ui, run fzero with no filter, run fzero win hq2x filter. I also attached compiled binary and changed source codes for anyone who is interested.

uhh.. I didn't really follow what you said but I always have 98%-100% speed... if you always have 100% it's not a big difference.
for the 60 fps I dropped frame skip to 0 and that's it. o.o
ImP0steR is offline   Reply With Quote
Old July 24th, 2005   #3 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
Quote:
Originally Posted by imp0ster
uhh.. I didn't really follow what you said but I always have 98%-100% speed... if you always have 100% it's not a big difference.
for the 60 fps I dropped frame skip to 0 and that's it. o.o
First I want to thank you for your feedback. After hundreds of people have viewed and downloaded the program, finally I got one feedback.

Second I am glad to hear that the modification didn't slow down VBA, since you don't feel the difference.

Last if you are still interested to find out what the difference is, try to run F-Zero with official VBA 1.72 using options of a) show FPS, b) skip = 0, c) no throttle, d) no filter. Then compare with the result with my version of same options + smooth 60 fps option.

Again run F-zero with official VBA 1.72 using options of a) Show FPS, b) skip = 0, c) no throttle, d) hq2x filter. Then compare with the result with my version of same options + smooth 60 fps option.

Then you will find out the differences.

Last edited by suanyuan; July 24th, 2005 at 06:37..
suanyuan is offline   Reply With Quote
Old July 31st, 2005   #4 (permalink)
GBA emulator developer
 
Spacy's Avatar
 
Join Date: Mar 2005
Location: Germany
Posts: 392
Oh, nice that you made some changes to the frame skipping. Would it be possible to add this to the "Automatic frame skipping" option instead of making a new one?

Sorry, didn't tried it for now.
Spacy is offline   Reply With Quote
Old August 2nd, 2005   #5 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
Quote:
Originally Posted by Spacy
Oh, nice that you made some changes to the frame skipping. Would it be possible to add this to the "Automatic frame skipping" option instead of making a new one?

Sorry, didn't tried it for now.
Spacy,
I think your suggestion is right. I will try to rewrite my code. In the mean time, since I have opened the source code of my modification. Anyone who wants to do this change is more than welcome.

Last edited by suanyuan; August 2nd, 2005 at 12:55..
suanyuan is offline   Reply With Quote
Old August 5th, 2005   #6 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
Quote:
Originally Posted by Spacy
Oh, nice that you made some changes to the frame skipping. Would it be possible to add this to the "Automatic frame skipping" option instead of making a new one?

Sorry, didn't tried it for now.
According to Spacy's suggestion, I have rewrite smooth 60 FPS frame control code.

The changes:
- using "Automatic frame skipping" option instead of making a new one.
- move frame control code inside "systemDrawScreen" function intead "IDisplay::render".
- adjust frame skipping every 10 frames instead every 60 frames
- change the format of cheat list file to VBA 1.8 format
(now can share cheat list between VBA 1.8 and this version)

Last edited by suanyuan; September 11th, 2005 at 06:33..
suanyuan is offline   Reply With Quote
Old August 6th, 2005   #7 (permalink)
GBA emulator developer
 
Spacy's Avatar
 
Join Date: Mar 2005
Location: Germany
Posts: 392
Oh, nice

I'll add this to my build.
__________________

Spacy is offline   Reply With Quote
Old August 11th, 2005   #8 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
VBA172_smooth_V4 + kega fusion filter plugin

I add Kega Fusion plugin system to my derived VBA172, now my computer of P4-2.53 G can run F-ZERO using hq2x filter with 115% CPU speed (no throttle, skip 0, win size x 3, hq2x). Give it a try, and give me some feedback.

The changes:
- when select DirectDraw render method, force desktop to switch to 16-bit color depth
- remove GDI, OpenGL display driver
- add Kega Funsion filter plugin system
Attached Images
File Type: jpg scr1.jpg (17.4 KB, 159 views)
File Type: jpg scr2.jpg (77.7 KB, 204 views)

Last edited by suanyuan; September 11th, 2005 at 06:31..
suanyuan is offline   Reply With Quote
Old August 12th, 2005   #9 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
I think my code has broken the sound and video synchronization, because I force to turn off "emulator synchronize" option when "auto skip frame" turn on to squeeze CPU emulation speed.

The music sounds much better when "emulator synchronize" option turn on.

Does anyone have any suggestion to fix this problem?
suanyuan is offline   Reply With Quote
Old August 13th, 2005   #10 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
VBA172_smooth_V5

Thanks for Forgotten's suggestion, I restore "synchronize" option's behavor.

Now "auto skip frame" option has no relation with "synchronize" option. If you want VBA sounds better, you should turn on "synchronize". If you want VBA runs game faster you can turn off "synchronize".

Now when "auto frame skip" option turn off, VBA172_smooth_V5 behaves just like official VBA172.

Quote:

the changes for VBA172_smooth_V5:

- restore "synchronize" option's behavor
- rewrite part of Direct3DDiplay class rendering code
- rewrite plugin system to support hq3x, hq4x, lq3x, lq4x, Scale3x, Scale4x filter plugin
- change frame adjust code, to stable FPS
- output notify message on screen when "auto skip frame" on/off
In my computer of P4 2.53 G, VBA172_smooth_V5 can run F-ZERO with hq3x filter almos 95% CPU speed with both "synchronize" and "auto skip frame" turn on. Alough I can't tell the differences between outputs of hq2x and hq3x.
Attached Images
File Type: jpg scr1.jpg (38.2 KB, 90 views)
File Type: jpg scr2.jpg (85.7 KB, 133 views)

Last edited by suanyuan; September 11th, 2005 at 06:31..
suanyuan is offline   Reply With Quote
Old August 15th, 2005   #11 (permalink)
THE Hentai M@ster
 
Hiei-YYH's Avatar
 
Join Date: Aug 2005
Location: MAKAI
Posts: 1,557
hope next official version be faster this way
Hiei-YYH is offline   Reply With Quote
Old August 28th, 2005   #12 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
VBA smooth v6 - audio synchronized with multi-thread

Hi, I come back with a new version of VBA smooth v6.

This version I try to keep track audio synchronization with another thread, and let VBA core speed a little bit slow than 100% to get a better audio.

Now VBA smooth v6 can run almost 98% cpu speed with synchronize option on. And the problem when enter a cafe CPU speed drop to 75% for GBC "Lufia - The Legend Returns (U) [C][!]" is also fixed. Try "Castlevania - Circle of the Moon" to find out the improvement.

Quote:

VBA smooth v6

- use another thread to keep sound synchronization
- use VS.NET 2003 and ICC 9.0 to compile VBA

This version doesn't run well for computers without hyper-thread hardware support.
Attached Images
File Type: jpg 1.jpg (31.6 KB, 252 views)
File Type: jpg 2.jpg (28.3 KB, 200 views)

Last edited by suanyuan; September 11th, 2005 at 06:32..
suanyuan is offline   Reply With Quote
Old August 30th, 2005   #13 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
I found the VBA smooth v6 has the problem of unstable frame rate in a p4-253 computer without hyper-thread hardware.

Without hardware multi-thread support the FPS become sometimes too fast above 110% that's why the music stutters.

Thanks for people reported this bug to me, sorry for my slow response and I will try to find some way to fix this bug.
suanyuan is offline   Reply With Quote
Old August 30th, 2005   #14 (permalink)
GBA emulator developer
 
Spacy's Avatar
 
Join Date: Mar 2005
Location: Germany
Posts: 392
Hi!

Nice progress . Seems like you can handle VBA better than I do. May you please post or send me the changed source files?

I'll have a look what I want to add into my release ^_^
Knowing how to write programs is just great in this world
__________________

Spacy is offline   Reply With Quote
Old August 30th, 2005   #15 (permalink)
Emulation64's Animal >:D
 
Keith's Avatar
 
Join Date: Apr 2001
Location: United States
Posts: 1,212
Nice work looking forward to the next release.
__________________




Emulation64.com | EFx2Blogs Forums | EFx2Blogs - Sign Up For Your Own Free EFx2Blog Today!
Keith is offline   Reply With Quote
Old August 31st, 2005   #16 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
Quote:
Originally Posted by Spacy
Hi!

Nice progress . Seems like you can handle VBA better than I do. May you please post or send me the changed source files?

I'll have a look what I want to add into my release ^_^
Knowing how to write programs is just great in this world
I have post the source code of VBA smooth v6. Any corrections or suggestions are more than welcome.
suanyuan is offline   Reply With Quote
Old August 31st, 2005   #17 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
VBA smooth v6.1

VBA smooth v6.1

- fixed the bug that make none hyper-thread PCs frame rate not stable

Last edited by suanyuan; September 11th, 2005 at 06:32..
suanyuan is offline   Reply With Quote
Old August 31st, 2005   #18 (permalink)
Registered User
 
Join Date: Aug 2005
Location: Sydney
Posts: 2
Quote:
Originally Posted by suanyuan
VBA smooth v6.1

- fixed the bug that make none hyper-thread PCs frame rate not stable

Can't open Rom Select window since v6.0
btw, can Sound sync with video buffer like MD emu Gens (instead of video synced to sound) ?
this way we don't have turn on Syncronization option which cause hiccup or stuttering during scrollong....
In official build ,without Syncronization option, scrolling is smooth as baby's butt..but you will get distorted sound time to time....

another option is Sound Buffer option which we can specify sound buffer size/delay for VBa to reduce sound distortion without Syncronization option turned on...

thanks
sjyune is offline   Reply With Quote
Old August 31st, 2005   #19 (permalink)
Registered User
 
suanyuan's Avatar
 
Join Date: Mar 2004
Posts: 59
Quote:
Originally Posted by sjyune
Can't open Rom Select window since v6.0
btw, can Sound sync with video buffer like MD emu Gens (instead of video synced to sound) ?
this way we don't have turn on Syncronization option which cause hiccup or stuttering during scrollong....
In official build ,without Syncronization option, scrolling is smooth as baby's butt..but you will get distorted sound time to time....

another option is Sound Buffer option which we can specify sound buffer size/delay for VBa to reduce sound distortion without Syncronization option turned on...

thanks
(1) It's my bad to pack vba.ini into the zip file. Please setup the rom directory before you open the select rom dialog. Or you can just delete the VBA.ini then configure your own settings.

(2) The whole idea to use multi-thread for audio synchronization is avoid the problem you described. I think the sound distortion problem has gone.

(3) in VBA, both sound and video is synchronized with CPU core. The sound buffer is actually small and the sound updates is quite frequently. Enlarge the sound buffer is a good idea to to reduce sound distortion.

Please give me some feedback after you can load GBA rom, give me some suggestions about this release.
suanyuan is offline   Reply With Quote
Old August 31st, 2005   #20 (permalink)
Registered User
 
Join Date: Aug 2005
Location: Sydney
Posts: 2
sorry..but still can't load rom windows since 6.0.....older ones works fine...
I'm using WinME...

*Updated* I just tested with AutoRomLoad (recent) but *on my computer* ,sound distortion is still there (actually worse)...I think buffer size option would be nice option...


*on my computer*
WinME
P-4 3g
512 Ram
SoundBlaster128 PCI

EDIT:

O.K. now with Sycronization option, that hiccup/stuttering during scrolling is gone...but am' getting constant minor static sound...before it was quite noisy but not constant...

btw, still can't open rom/save windows box.....
also I'm using AIM:sjyune104
and my email: poooochi@hotmail.com
but my MSN out of date..as it caused crash...

Last edited by RF; September 1st, 2005 at 03:18.. Reason: double posting
sjyune is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 00:45.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5