JEmu2 online again

OMG sf2 on java that is the best, JEmu2 is amazing, great work!!!

New version (1.6) is online!
Head over to http://www.gagaplay.com, go to JEmu2 and click the JEmu2 for CPS games link.

It’s not optimized yet, so system requirements are currently fairly high.

OMG sf2 is runnings brilliant, can’t belive i’m playing this on java, excellent work!

It’s great i’m impressed ^^

Thanks :slight_smile:

I just did a performance optimization in the renderer, causing a massive >30% speed increase :smiley:
The change was to replace function calling through interfaces by good-ole switches. Never knew the difference would be that great.

I’ts really so important not to use interfaces? also in j2me? :-\

Usually, you shouldn’t worry about this and just go on and use interfaces for cleaner code.
However, in this case, several functions were called through interfaces for each rendered pixel (about 16 per pixel), with the implementations changing all the time (so the JVM probably has no chance optimizing that well).
And that for each layer (there’s 3 of them) and for all sprites.We’re talking about a few million indirect function calls per frame here.
With those amounts, even the smallest difference in performance counts.

EDIT- correction: it’s 16 indirect function calls per 8 pixels. Still about half a million per frame, though.

ahm, ok, i was implementing some kind of customizable events for a j2me game, based on loading dinamcally a class implementing an “Event” interface, i guess it won’t handle more than 50 calls per frame, so i hope it won’t kill all the handsets ::slight_smile:

SF2 plays well, can’t find the punch keys tho?

On the bright side my SF2 skills haven’t failed. Managed to beat the characters using only kicks :slight_smile:

Kev

Punching is for the weak! ;D

One of the guys at my work bought an X-Men Vs. Street Fighter arcade machine a few weeks ago and we have it in the cafeteria.
I hate that game.
yes, it is because I suck at it. :slight_smile:
All those stupid combo moves that never work for me… different for every character… that you have to guess at… lame.

I sent him the link to JEmu2 - he was impressed :slight_smile:

The keys are SPACE, L-CTRL, L-SHIFT, Z, X, and V (the 1st 3 are punch keys)

Thanks for the pointer, I’ll have it completed now.

And after that week, can I use kicks again? :slight_smile:

Kev

Sorry, the V key is not used, I meant the C key

Do you plan on adding key customization? I can hit my combos half the time, because I am used to using my left had for controlling and my right had for strikes. ;D

Also, very nicely done. It runs very well on a 2GHz with 1GB memory. I’ll try it later on a 1GHz with 512MB and let you know how it performs.

Key customization is already added, and will be there the next version :slight_smile:

I guess it won’t run full speed on 1GHz. It’s not very optimized yet.

There are some graphical drawing errors with the numbers. Sometimes the scores show letters or symbols. This happens anywhere that numbers are drawn.

Yes, I noticed that as well. Probably a CPU bug…

Runs just as well on my home machine.(A little slower, but playable.) Makes it easier to see the moves.

AMD 1.0GHz
512MB
Windows XP
Radeon 9600Pro

ps. You may have also noticed, the scores don’t add correctly. It added 5000 to 5500 and got 26500.

Yes, I noticed that as well. Not a good idea to add online highscores just yet ;D
My first thought is that it might be the ABCD opcode. This weekend I’m going to see if my own 68k core has the same problems.

BTW, I just found a little typo in my code which caused it to use > 250MB of memory ::). Now it only takes about 70MB. :slight_smile: