Linux port

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Stifu
Regular
Posts: 245
Joined: Fri Dec 10, 2004 10:02 pm

Post by Stifu »

I've been using Windows XP for a while now, and it only crashed very few times, like just 2 or 3, and it was all the same day... I was messing with an exe file, hex editing it to try stuff, and when I was out of luck it made me crash... That's it.
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

Sometimes the quality of any OS is dependent on the drivers and quality of the hardware that is used... Some low quality components (especially mobos) and poorly written drivers (or different drivers that cause the hardware to become "more sensitive") can cause problems hence some bad "reaction".. though that doesn't mean XP won't crash like any other OS.
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

Anyways, shouldn't we get back on the subject of the Linux port instead of OS supremacy?

pagefault, one thing I think I mentioned as a bug before, but may or may not be just my system because of FreeBSD, is that I can't use any of the low-pass sound filters or the 8-point sound interpolation without ZSNES freezing when I go to the GUI while sound is playing and then back into the game. Removing my config files for that didn't do a thing.
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

Since we were Windows XP bashing...
The first 2-3 days I had my XP box, I was screwing around with the screensavers. BAM. Windows crashed and restart. (this still happens to this very day)
~1.5 weeks ago.. Bought a Nyko controller, installed its drivers... opened ZSnes... BAM. Windows crashed and restart. Then I use the "Last known good config" option to revert XP back to before I installed the controller, and Windows is happy. Then after a little while I reinstalled the driver... 10-20 minutes later.. computer crashed and restarts. I'm actually suprised a basic Windows driver is actually more stable than the included drivers...
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
lunpa
Rookie
Posts: 14
Joined: Tue Apr 05, 2005 1:16 am
Location: mars
Contact:

Post by lunpa »

Metatron wrote:...And, surprise, Windows XP doesn't crash often (read: at all) if used properly either unless met with a hardware failure or a really horrible bug in software. Thus voiding your post and your argument halfway CyberBotX.

As for stopping, I myself don't get any if I let it initally sit idle after bootup for... ten seconds?

Please stop the outright general OS superiority biases (on ALL sides), they are bullshit a grand majority of the time.
Sure, and 98 is quick and fast when you use it right (without the internet).
Thing is, with a highly optimised Linux system, you can have all your system compiled specificly for your hardware rather than for the limiting generic 386 settings that binary distros (like debian, redhat, and windows XP) use. That alone is faster and more stable on newer hardware. So yes, you can have a stable Windows system, but Linux does the same stuff faster*.


But with that said, this is imensely off topic, so to redeem myself, here is a sugestion in the form of a question:
Was netplay in linux ever fixed (or dare I say "finaly added")?



* when done right.
I wanna learn how to play the accordian trumpet...
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

lunpa wrote: Was netplay in linux ever fixed (or dare I say "finaly added")?
In other words you have never looked at the Linux build, since there wasn't a single official release that compiled on Linux that didn't have netplay.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
lunpa
Rookie
Posts: 14
Joined: Tue Apr 05, 2005 1:16 am
Location: mars
Contact:

Post by lunpa »

mine's up-to-date. Netplay causes zsnes (for me) to segfault, so for me there is play, but no net. I'll settle for 'half-implemented' ;)

I've made my own thread for such woes (http://board.zsnes.com/phpBB2/viewtopic ... 1040#51040). I'm just throwing my gripe with the client here.
I wanna learn how to play the accordian trumpet...
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

You know, I'm not sure if it's just my system's video card or if it's FreeBSD's OpenGL support or even if it's just ZSNES, but if I use any OpenGL video modes, the video is very, very slow, but if I use one of the few non-OpenGL modes, it runs perfectly fine. Anything I should try to get OpenGL video to run better?
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

How do other OpenGL apps run?
[u][url=http://bash.org/?577451]#577451[/url][/u]
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

I guess I didn't have any other OpenGL apps, so I installed one called Xracer. And it ran just as slowly as ZSNES did. So that has to rule out ZSNES from the list of culprits for OpenGL problems. So it's either my video card or FreeBSD itself. Wish there was some other way to test it, but I don't have another 3D video card to put in my system.
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
bztunk
Hazed
Posts: 84
Joined: Mon Dec 27, 2004 9:08 pm
Location: In A.D. 2101, war was beginning.

Post by bztunk »

CyberBotX wrote:I guess I didn't have any other OpenGL apps, so I installed one called Xracer. And it ran just as slowly as ZSNES did. So that has to rule out ZSNES from the list of culprits for OpenGL problems. So it's either my video card or FreeBSD itself. Wish there was some other way to test it, but I don't have another 3D video card to put in my system.
Maybe you didn't set up DRI correctly, and it's running in software mode.
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

How would I go about checking if that's the case? In my xorg.conf file, I have the GLX and DRI modules loaded. I also had to disable the omitting of the DGA extension because of VMware. I do understand what you are trying to get at, but I don't know how to check for software or hardware rendering.
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
Kagerato
Lurker
Posts: 153
Joined: Mon Aug 09, 2004 1:40 am
Contact:

Post by Kagerato »

Code: Select all

glxinfo | grep rendering
This should output a string with "direct rendering: " and a yes/no. Yes means your video card (GPU) is doing the work, no means the mesa software libraries are doing the processing (via CPU...quite slow, as you describe).
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

Says no, sadly. Anything that can be done to make it use my vid card's GPU instead of my CPU for rendering?
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
Kagerato
Lurker
Posts: 153
Joined: Mon Aug 09, 2004 1:40 am
Contact:

Post by Kagerato »

With an ATI card, you can either use the Direct Rendering Infrastructure (DRI), or get ATI's binary linux drivers. Many people say the binary drivers suck, and they probably do, but there is no open source driver which fully supports the R300 series of ATI cards. Though there is an effort to produce such an open source work: http://r300.sourceforge.net/.

If you don't have a card that new, DRI will provide an appropriate interface between your video card and any software (like OpenGL) that can make effective use of it.

This wiki is a very good place to start learning about DRI: http://dri.freedesktop.org/wiki/.

For nvidia cards, you don't really have a choice. There is no open source project that provides 3D acceleration for nvidia-based GPUs. However, nvidia's binary drivers are excellent. Nvidia packages their linux binary in some sort of compressed executable (".run"). [They previously use RPMs, which was annoying because it did not support all distributions.] Nvidia also documents their driver thoroughly. Try these links:

http://www.nvidia.com/object/linux_disp ... -7174.html
ftp://download.nvidia.com/XFree86/Linux ... README.txt

One of the aspects of Gentoo that I love is that it's very easy to install the nvidia driver. "emerge nvidia-glx" (which pulls in nvidia-kernel if it's not installed already), and then update xorg.conf .

With nvidia cards, you shouldn't have the "DRI" module loaded in your X server. With ATI cards, you need "DRI" and "GLX" (for OpenGL) support. "GLX" needs to be referencing the original X11 code for ATI systems, though, and not the nvidia binaries (which it will unless you accidently installed them).

Another important thing to keep in mind is that with linux DRI has a kernel-side module which must be built/loaded. I don't know how this works with *BSD systems, but the DRI wiki should cover it.

This HOWTO is a little bit outdated, but it might help with setting up ATI support:

http://bluszcz.jabberpl.org/radeon_dri_howto.txt

In any case, there's a ton of information out there about this. Google for terms more specific to your problems and you'll get less generic results.
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

Thanks a lot, Kagerato, that worked. :P I had an Nvidia GeForce 4, and luckily for me, FreeBSD has a port for the nvidia driver and it works great. ^_^
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
Kagerato
Lurker
Posts: 153
Joined: Mon Aug 09, 2004 1:40 am
Contact:

Post by Kagerato »

Excellent. I'm glad to be of help.
jdratlif
Regular
Posts: 317
Joined: Tue Sep 14, 2004 12:48 am
Location: In a small padded white room
Contact:

Post by jdratlif »

I was going to ask for better sound support, but you've changed something in the recent WIPs. I don't know quite what it is, but it's sounds a lot better. I thought maybe I was mistaken, but I just compiled the 2004 May 05 WIP to check and there is a big difference. Probably should read that changelog thing every once in awhile...

I do have a few things I want though.

1) debugger support would be nice. I wasn't too fond of the DOS one though. I couldn't tell if you could do read/write breakpoints. It seemed like it was only PC breakpoints which I don't use very often. But maybe I was using it wrong.

2) full screen opengl aspect ratio modes. (ODR F) I'm using some windowed one right now. It works fine, but I don't like windowed mode.

3) maybe this is already possible, but I'd like the version to show the CVS date, rather than the compilation date. Maybe an option in autoconf?

4) I'd like the configure file to be included with the source distribution. You wouldn't need to include autogen.sh if you included the configure script.
http://jdrrant.blogspot.com/ - CODEpendent Blog
http://games.technoplaza.net/ - Emulation Goodies
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

jdratlif wrote: 3) maybe this is already possible, but I'd like the version to show the CVS date, rather than the compilation date. Maybe an option in autoconf?
Come up with a method to get the CVS date. If that even makes any sense at all.
jdratlif wrote: 4) I'd like the configure file to be included with the source distribution. You wouldn't need to include autogen.sh if you included the configure script.
Please don't ask for things that are done.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
jdratlif
Regular
Posts: 317
Joined: Tue Sep 14, 2004 12:48 am
Location: In a small padded white room
Contact:

Post by jdratlif »

Nach wrote:
jdratlif wrote: 3) maybe this is already possible, but I'd like the version to show the CVS date, rather than the compilation date. Maybe an option in autoconf?
Come up with a method to get the CVS date. If that even makes any sense at all.
That of course may prove difficult. What about a configureable date? ./configure --with-version=20050404
Nach wrote:
jdratlif wrote: 4) I'd like the configure file to be included with the source distribution. You wouldn't need to include autogen.sh if you included the configure script.
Please don't ask for things that are done.
Ummm. It's not in http://www.ipherswipsite.com/files/zsne ... 04.tar.bz2

Perhaps you are referring to CVS? I didn't grab it from there though.

edit: I don't see it in the CVS archive either.
http://jdrrant.blogspot.com/ - CODEpendent Blog
http://games.technoplaza.net/ - Emulation Goodies
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

jdratlif wrote:
Nach wrote:
jdratlif wrote: 4) I'd like the configure file to be included with the source distribution. You wouldn't need to include autogen.sh if you included the configure script.
Please don't ask for things that are done.
Ummm. It's not in http://www.ipherswipsite.com/files/zsne ... 04.tar.bz2

Perhaps you are referring to CVS? I didn't grab it from there though.

edit: I don't see it in the CVS archive either.
And ipher has what to do with official source destributions? CVS isn't for code like that either.

http://prdownloads.sourceforge.net/zsne ... z?download
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

I think he means he wants you to include the configure script in the WIPs, not just the official releases. That's what I gather anyways.
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
jdratlif
Regular
Posts: 317
Joined: Tue Sep 14, 2004 12:48 am
Location: In a small padded white room
Contact:

Post by jdratlif »

Nach wrote:And ipher has what to do with official source destributions? CVS isn't for code like that either.

http://prdownloads.sourceforge.net/zsne ... z?download
I don't think people should need autoconf on their system whether they are compiling from CVS, or from cvs snapshots put together by ipher.

I think CVS should be for code like that, but it is your project. If you don't want to do it, then don't.
http://jdrrant.blogspot.com/ - CODEpendent Blog
http://games.technoplaza.net/ - Emulation Goodies
anomie
Lurker
Posts: 151
Joined: Tue Dec 07, 2004 1:40 am

Post by anomie »

jdratlif wrote:I don't think people should need autoconf on their system whether they are compiling from CVS, or from cvs snapshots put together by ipher.
Most projects using autoconf require autoconf when compiling from CVS. There's not much point in having automatically generated files cluttering up your CVS change history.

As for the CVS snapshots, that's up to ipher to generate those files or not.
jdratlif
Regular
Posts: 317
Joined: Tue Sep 14, 2004 12:48 am
Location: In a small padded white room
Contact:

Post by jdratlif »

anomie wrote:
jdratlif wrote:I don't think people should need autoconf on their system whether they are compiling from CVS, or from cvs snapshots put together by ipher.
Most projects using autoconf require autoconf when compiling from CVS. There's not much point in having automatically generated files cluttering up your CVS change history.

As for the CVS snapshots, that's up to ipher to generate those files or not.
Hmmm... Well, I don't use CVS builds very much. It's not really important; it was just a thought.
http://jdrrant.blogspot.com/ - CODEpendent Blog
http://games.technoplaza.net/ - Emulation Goodies
Post Reply