Author Topic: Final Burn Alpha SDL for GCW-Zero (UPDATE 2015-03-11)  (Read 196607 times)

Gab1975

  • Posts: 1165
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #240 on: May 12, 2014, 08:40:05 pm »
I cannot make an OPK, only an executable you'd run over Telnet/SSH. Critical files of the OPK build process are missing.

I guess I could reverse the OPK, add the new executable in, and repack it, but I'd rather let d_smagin make a build, test it and give it out himself. I don't own any ROM I can use with FBA, so this is untested code; in particular, it's possible that the border of games that don't fit exactly in 320x240 may flicker madly and trigger photosensitive epilepsy.

This is what happens! I hope it will be fixed soon... this bug is very annoying for the eyes! :(

surfi80

  • Posts: 252
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #241 on: May 12, 2014, 08:59:58 pm »
epilepsy? oh wait!
play with the best? die like the rest!

http://www.elotrolado.net/wiki/PS_VITA_Usuarios_EoL

dcervi

  • Posts: 67
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #242 on: May 12, 2014, 10:05:10 pm »
I had a look at the sources. I think changing this routine at the end of sdl_video.cpp:

void VideoClear() {

SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));
SDL_Flip(screen);
SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));

}

Into this:

void VideoClear() {

SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));
SDL_Flip(screen);
SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));
SDL_Flip(screen);
SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));

}

Should solve the flickering problem. I don't have the GCW toolchain installed on my computer. Could someone try it and confirm if it's working, please?

(I hope the code is readable. I'm posting from my phone)


Gab1975

  • Posts: 1165
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #243 on: May 13, 2014, 06:39:06 am »
void VideoClear() {

SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));
SDL_Flip(screen);
SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));

}

Into this:

void VideoClear() {

SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));
SDL_Flip(screen);
SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));
SDL_Flip(screen);
SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));

}

If I understand well what is written (I'm not a coder), the problem in the current code could be that only two of three buffers are filled with a black/opaque rectangle, so one buffer remains "uncovered" and this originates the flickering issue!

Nebuleon

  • Guest
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #244 on: May 13, 2014, 06:59:19 am »
[...]
SDL_FillRect(screen,NULL,SDL_MapRGBA(screen->format, 0, 0, 0, 255));

If I understand well what is written (I'm not a coder), the problem in the current code could be that only two of three buffers are filled with a black/opaque rectangle, so one buffer remains "uncovered" and this originates the flickering issue!
Yup. The third buffer is still filled with the menu.

I think there's an in-game menu though, not just the launcher, so one more fix would be needed.

Gab1975

  • Posts: 1165
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #245 on: May 13, 2014, 07:27:30 am »
I think there's an in-game menu though, not just the launcher, so one more fix would be needed.

Yes, the same flickering issue occurs when you go to the "in-game menu" (L + R triggers + start) and after you come back to the emulated game!

dcervi

  • Posts: 67
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #246 on: May 13, 2014, 02:18:53 pm »
A call to the function 'VideoClear' after menu exit should solve it. It also needs to be called after disabling 'Show FPS' while in-game.

Possibly these calls are already present, but the current function only clears 2 of 3 buffers.

Norghat

  • Posts: 32
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #247 on: May 14, 2014, 02:06:18 pm »
It's impossible to make the analog work for all game ?
It'll be better to play shoot'em'up for exemple  8)

Gab1975

  • Posts: 1165
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #248 on: May 17, 2014, 09:03:19 am »
I don't want to be pressing... but it's a pity to have the triple buffer version with the "flickering bug"... I hope that it will be fixed soon! :)

Atlantis_Risen

  • Posts: 535
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #249 on: May 17, 2014, 11:00:49 pm »
I don't want to be pressing... but it's a pity to have the triple buffer version with the "flickering bug"... I hope that it will be fixed soon! :)

Which games exhibit that?  I have noticed a stray white line in Yoshi's Island, but it runs amazing.

I just realized this makes no sense...I thought I was in the pocketSNES thread.
« Last Edit: May 18, 2014, 01:07:02 am by Atlantis_Risen »

Eliwood_san

  • Posts: 258
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #250 on: May 18, 2014, 12:37:01 am »
It would be great if this emulator get the support for  the analog joystick and cheats...

dmitry_smagin (OP)

  • Posts: 423
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #251 on: May 18, 2014, 06:45:41 pm »
Try this build: http://www.sendspace.com/file/oraaj0
Buffer is cleared 3 times, this should fix epylepsy. :)
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

Gab1975

  • Posts: 1165
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #252 on: May 18, 2014, 08:49:43 pm »
Try this build: http://www.sendspace.com/file/oraaj0
Buffer is cleared 3 times, this should fix epylepsy. :)

Thanks... now we can say goodbye at the "flickering bug" ! ;)

Inertia

  • Posts: 157
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #253 on: May 19, 2014, 09:40:55 am »
Perfect, no more flickering!!
Thank you d_smagin
BTW is it possible to activate the analog stick for ALL games?
Like  Offline alexei_gp  or Norgath I think that it will be very usefull for shooter and games that need some sharp controls, it can be a nice alternative to the poor dpad :)

Eliwood_san

  • Posts: 258
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #254 on: May 20, 2014, 04:16:27 am »
Perfect, no more flickering!!
Thank you d_smagin
BTW is it possible to activate the analog stick for ALL games?
Like  Offline alexei_gp  or Norgath I think that it will be very usefull for shooter and games that need some sharp controls, it can be a nice alternative to the poor dpad :)

LOL sometimes im online here but i dont post too much because my english is not perfect xDDD but i agreed with you the emulator FBA and gngneo needs joystick supports and cheats.

dmitry_smagin (OP)

  • Posts: 423
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #255 on: May 20, 2014, 07:38:43 am »
Perfect, no more flickering!!
Thank you d_smagin
BTW is it possible to activate the analog stick for ALL games?
Like  Offline alexei_gp  or Norgath I think that it will be very usefull for shooter and games that need some sharp controls, it can be a nice alternative to the poor dpad :)

Input code is a bit messy, the analog part is inherited from FBA-pandora and hasn't been revised since. I'm going to clean it up eventually and add 'Analog as d-pad' option to the frontend. And ideally it would be fine to allow multiple inputs (yeah, for 2 players :)
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

Inertia

  • Posts: 157
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #256 on: May 20, 2014, 06:27:15 pm »
Nice!!
Thank you :)

toto

  • Posts: 147
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #257 on: May 20, 2014, 09:27:48 pm »
Guys, any "Batman" games running on FBA for the GCW?

surfi80

  • Posts: 252
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #258 on: May 21, 2014, 02:58:05 pm »
Guys, any "Batman" games running on FBA for the GCW?
sorry to say that there is not
play with the best? die like the rest!

http://www.elotrolado.net/wiki/PS_VITA_Usuarios_EoL

Xaijiqq

  • Posts: 450
Re: Final Burn Alpha SDL for GCW-Zero (UPDATE 2014-05-06)
« Reply #259 on: May 23, 2014, 03:32:33 am »
using the latest fba release i notice the flickering bug again when vertical sync is on while using save states.  anyone else notice this?