Search found 49 matches

by hector
Thu Jun 22, 2006 3:21 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

That must've been one hell of a week for you. Well, think of this as a present then :wink:
by hector
Wed Jun 21, 2006 8:15 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

This is a tough question. On the one hand, we should take advantage of features available in newer SDL versions, but at the same time we should avoid breaking people's builds because they haven't upgraded their SDL yet. One course of action would be to force everyone to use 1.2.10, and see what peop...
by hector
Tue Jun 20, 2006 8:33 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Index: linux/gl_draw.c =================================================================== --- linux/gl_draw.c (revision 3313) +++ linux/gl_draw.c (working copy) @@ -80,6 +80,7 @@ } SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); glvidbuffer = (unsigned s...
by hector
Tue Jun 20, 2006 3:22 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Hey, it was a pleasure and the result has turned out to be really worthwhile. Just imagining the number of people that will now be having fun with ZSNES on the Mac is reward enough. And thank you Nach for putting up with us :D.
by hector
Tue Jun 20, 2006 2:56 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

A possible fix for getting Vsync working in OpenGL is:

Code: Select all

GLint swapInt = 1;
aglSetInteger(aglContext, AGL_SWAP_INTERVAL, &swapInt);
I will test this when I get home.
Helpful link: http://lists.trolltech.com/qt-interest/ ... 311-0.html
by hector
Mon Jun 19, 2006 10:31 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Hi polyh3dron, unfortunately for now I don't think double buffering is working so as you've found we're going out of vsync and getting tearing. I will have a look at this later. Nach, your changes were very good. Just one small thing, currently the test deciding whether to run the OpenGL check is: i...
by hector
Mon Jun 19, 2006 4:54 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Commit looks good. I will confirm that it works when I get home.
by hector
Mon Jun 19, 2006 3:34 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Hi Nach, looked over the commits. I don't think the OpenGL library can be found through AC_CHECK_LIB as the library file lies within the OpenGL.framework. When linking with OpenGL you need the -framework OpenGL flag. This is what I meant when I said that fitting Mac OS X OpenGL support into the conf...
by hector
Mon Jun 19, 2006 11:41 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Hey polyh3dron, great to see it working on your end and that you're having fun. The secondary display option seems to be much requested but I don't have any idea what code would be required - I'm quite new to Mac development and I'm not very familiar with ZSNES' code. It might be possible through SD...
by hector
Sun Jun 18, 2006 9:00 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Can some people test out the Xcode project available from:

http://hectorchu.googlepages.com

All relevant instructions are there.
by hector
Sun Jun 18, 2006 8:59 pm
Forum: ZSNES Talk
Topic: ZSNES for Intel Mac ready for consumption!
Replies: 151
Views: 280152

ZSNES for Intel Mac ready for consumption!

Hi everyone, Just a little note to let everyone know that ZSNES on Intel Mac has reached a fairly mature stage. You can try it out by going to: http://hectorchu.googlepages.com If it works for you then let us know here! It has only been tested on 10.4.6 (Tiger), so I can't guarantee that it'll work ...
by hector
Sun Jun 18, 2006 2:07 pm
Forum: Development
Topic: Parsegen can now run concurrently with itself, w00t
Replies: 38
Views: 26272

Parsegen can now run concurrently with itself, w00t

Xcode loves to run compilation commands in parallel (two at the same time because there are two cores available). Unfortunately parsegen can't run at the same time as parsegen (in this case two parsegens run at the same time, one operating on cfg.psr, the other on md.psr). This is because they use t...
by hector
Sun Jun 18, 2006 1:24 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

I'm wondering whether there has been some mistake in the following: Index: linux/sw_draw.c =================================================================== --- linux/sw_draw.c (revision 3271) +++ linux/sw_draw.c (working copy) @@ -45,7 +45,7 @@ { //unsigned int color32, p; //int i; - Uint32 flags...
by hector
Sat Jun 17, 2006 10:30 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

The patches have gone to Eric Christopher who is responsible for maintaining NASM over at Apple. Last he spoke he said he would look into it soon. No knowing exactly when though, knowing Apple. I'd like to point out a small mistake in r3260. In configure.in NFLAGS was changed to NFLAGS="$NFLAGS...
by hector
Sat Jun 17, 2006 12:50 pm
Forum: Development
Topic: MMX detection not working
Replies: 1
Views: 3070

MMX detection not working

As you all know I have a Macbook which contains the latest Intel Core Duo chip in it, yet Zsnes thinks it doesn't have MMX. I think I found the bug in the detection routine that was causing this. Index: ui.asm =================================================================== --- ui.asm (revision 3...
by hector
Sat Jun 17, 2006 9:03 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

I don't have any problems with the latest revision of the code. Make sure you apply all the patches I posted to the assembler. All the lowpass filters work, even the high quality one, so I'm not sure what to think. The thing is, the 8-point interpolation sort of works, except that if there is no inp...
by hector
Fri Jun 16, 2006 11:59 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

The Code Alignment warning was caused by the .text section having an alignment of 1. Apparently from looking at the assembler code this is the default for Mach-O, whereas for ELF the default alignments are: .text 16 .data 4 .bss 4 This is also the case for win32. Coff doesn't support section alignme...
by hector
Fri Jun 16, 2006 9:27 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

The assembler bug that necessitated the following patch: Index: macros.mac =================================================================== --- macros.mac (revision 3183) +++ macros.mac (working copy) @@ -63,3 +63,6 @@ %macro ALIGN16 0 times ($$-$) & 1Fh nop ; Long word alignment %endmacro + ...
by hector
Thu Jun 15, 2006 7:56 pm
Forum: Development
Topic: Fix for SuperFX 2
Replies: 1
Views: 3505

Fix for SuperFX 2

The conversion of initsnes to C was not completely fault free. Here's one fault I found in map_sfx(): Index: initc.c =================================================================== --- initc.c (revision 3191) +++ initc.c (working copy) @@ -2579,7 +2579,7 @@ map_set(snesmmap,ROM,0x40,0x10000); //...
by hector
Thu Jun 15, 2006 2:52 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

From the ld manpage it says that read only relocs are undesirable as they prevent sharing of the text segment, thereby increasing memory usage if more than one invocation of the program is running at the same time. So they error it to alert the developer, but at the same time allow the developer to ...
by hector
Thu Jun 15, 2006 1:41 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

The assembly code calls the routines getchar and putchar. These are external relocatable symbols that occur within the text section because assembler code goes into the text section. They are fixed up at runtime, which necessitates modification of the read-only text section when it is loaded at runt...
by hector
Thu Jun 15, 2006 12:18 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

The only problem with read only relocs is that they disallow sharing of the text segment among multiple invocations of the program. There isn't anything wrong with them really.
by hector
Thu Jun 15, 2006 7:41 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

The first one is CVS revision 1.4 of the file. The second one is the latest CVS revision, 1.7. I've now sent a testcase to Apple and the fix should eventually appear in CVS. Thank you Nach for the commits. I don't want to seem ungrateful, but will you also consider committing the change to the LDFLA...
by hector
Wed Jun 14, 2006 11:32 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Well in that case I don't know what the problem could be. As I said earlier the latest SVN works fine here. I'm using this patch at the moment: Index: ui.asm =================================================================== --- ui.asm (revision 3235) +++ ui.asm (working copy) @@ -21,7 +21,7 @@ %in...
by hector
Wed Jun 14, 2006 11:03 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 105339

Maybe my diff is bad. Since it's only one line, can you just go in and add that line yourself?