Author Topic: Porting FBA to Linux (Win|OSX) with Qt  (Read 25870 times)

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #15 on: May 06, 2014, 06:49:21 AM »
Nice work RomHack :) A port of FBA on Linux is something a lot of people wants to see!

Offline Romhack

  • Expert
  • *****
  • Posts: 92
  • Karma: +49/-0
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #16 on: May 07, 2014, 04:46:44 AM »
Here is a test build for linux64.
https://www.dropbox.com/s/z8yp5gj3fksztr8/fbaqt-linux64.tar.bz2

I'm implementing fullscreen support. At first raster render was a bit slow (1920x1080), but with QGLWidget it's running smoothly :)
« Last Edit: May 07, 2014, 09:45:04 AM by Romhack »

Offline Hiko

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #17 on: May 07, 2014, 09:17:09 PM »
Building with Qt5.2.1 on OS X, no good :(

kev

  • Guest
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #18 on: May 08, 2014, 02:40:53 PM »
Yeah, that's not Qts fault that clang being a bit harsher than gcc. I have those fixed in my local tree but wanted to check against the latest version of FBA before I did any more with it.

I'll try and get a pull request done asap. As usual time is my enemy.

 
I also can't attach a build as it's more than 6mb zipped.

Online dink

  • Administrator
  • *****
  • Posts: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #19 on: May 08, 2014, 04:06:55 PM »
kev, http://sharesend.com is nice for swapping larger files :)

kev

  • Guest
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #20 on: May 08, 2014, 06:45:29 PM »
I've made a branch here: https://bitbucket.org/kjarmstrong/fba-qt

Also sent a pull request to Romhack.

I've only tested it with the latest Qt Creator. The only other dependency is the latest SDL 1.2 build, installed as per the instructions on the SDL site (i.e. make sure you have the lib in your frameworks directory)

kev

  • Guest
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #21 on: May 08, 2014, 06:48:30 PM »
Build here (thanks for the suggestion Dink)

http://sharesend.com/g3o89a8g

Offline Hiko

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #22 on: May 09, 2014, 12:43:56 AM »
This build doesn't work on my Mac(10.9.3 13D61), trying to build the source in my own environment, it works!

But it looks...

« Last Edit: May 09, 2014, 12:45:37 AM by Hiko »

kev

  • Guest
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #23 on: May 09, 2014, 12:41:30 PM »
Hiko: Did you get any error messages with my build? Also can you post your build somewhere so I can take a look here?

Offline Romhack

  • Expert
  • *****
  • Posts: 92
  • Karma: +49/-0
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #24 on: May 09, 2014, 04:44:50 PM »
Thank's for the patch :)

---
I'll need to move emulation code to another thread. When I hide menu, go fullscreen or move window the UI thread is busy doing these things and doesn't call emulation handler in time, as side effect sound emulation thread is running and continue to request more sound, so we got a lot of buffer underflow...
« Last Edit: May 09, 2014, 05:23:26 PM by Romhack »

Offline Hiko

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #25 on: May 09, 2014, 07:51:40 PM »
Hiko: Did you get any error messages with my build? Also can you post your build somewhere so I can take a look here?

Hi Kev, it seems your build is not static, I show you the error message screenshots, and I attached my build here:
https://www.dropbox.com/s/j1lxfx203gy93ds/fbaqt.app.zip

Offline Romhack

  • Expert
  • *****
  • Posts: 92
  • Karma: +49/-0
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #26 on: May 13, 2014, 04:08:15 PM »
Rendering into QGLWidget from another thread is a hell! And performance is bad, the thread always block on swapBuffers :P
So I left Qt drawing system. I am now using ruby (http://byuu.org/programming/ruby/) for videobackends (audio/input in future :)), and for my surprise it's incredibly fast for rendering (OpenGL backend has shaders support for free :)). Now I have a responsive GUI and rendering is smoothly even when resize/move the window. All these things without another thread!

kev

  • Guest
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #27 on: May 13, 2014, 06:11:09 PM »
Awesome.  That sounds like a great idea :)

Offline Romhack

  • Expert
  • *****
  • Posts: 92
  • Karma: +49/-0
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #28 on: May 13, 2014, 06:31:03 PM »
Shaders from higan  :biggrin:



Projection effect :D

kev

  • Guest
Re: Porting FBA to Linux (Win|OSX) with Qt
« Reply #29 on: May 15, 2014, 07:29:28 PM »
Damn that's cool :) seems like it should be in the native windows build too :)