Files
wagic/JGE
wrenczes@gmail.com 6d8e7edcbf Improvements against http://code.google.com/p/wagic/issues/detail?id=50, Mana animation slows PSP down.
Two things: 1) there was an extremely inefficient implementation in the particle system of a queue where, when particles expired, each expired element would be copied over(replaced) by one at the rear of the container. Depending on the performance of the update, this could range anywhere from 100 to 500 (the max particle count) memcpy operations per update loop.  I replaced the flat array with a std::list, and simply pop the unneeded elements when they expire now.  This seems to shave ~30% off the time spent in the Update() call.

2) Hardcoded the number of emitters for the mana particles to 60 (the default in the psi file seems to be around 114).  This reduces the amount of iterations per tapped mana by just over half, which also helps the performance, and it's not really noticeable - the glow effect is a *tiny* bit more muted, but chances are, if you didn't read this comment, you probably wouldn't have noticed.

I've gone from having my psp start lagging noticeably at 8 tapped mana to about 12 - at this point, I think the bigger remaining lag is the fact that when there's a cache miss for a card image, we're doing synchronous i/o on the main thread - the framerate drop this causes is far more noticable than the mana particle lag.
2010-11-08 07:27:19 +00:00
..
2008-11-02 09:50:16 +00:00
2008-11-02 09:50:16 +00:00
2009-09-23 03:33:02 +00:00
2008-11-02 09:50:16 +00:00
2008-11-02 09:50:16 +00:00
2008-11-19 12:21:23 +00:00
2008-11-02 09:50:16 +00:00
2010-06-12 06:06:27 +00:00
2009-04-12 12:39:44 +00:00
2008-11-02 09:50:16 +00:00
2008-11-02 09:50:16 +00:00
2008-11-02 09:50:16 +00:00
2008-11-02 09:50:16 +00:00

Introduction
------------

JGE++ (Jas Game Engine++) is a hardware accelerated 2D game SDK for PSP. It supports cross-platform development under MS Windows. The entire game development process, including coding, debugging and testing, can be done in Windows. (However, it's still recommended to test your game on PSP from time to time to make sure everything is fine.)

You can use JGE++ to make Windows games but the primary platform is PSP.


Features

    * 1.xx and 3.xx firmware support on PSP.
    * Hardware accelerated 2D rendering including scaling, rotations and colour blending.
    * Animated sprites.
    * Geometry shapes rendering, including rectangle, circle, polygons and thick lines.
    * Loading PNG, JPEG and GIF.
    * Spline.
    * Advanced multiple emitter and key frame based particle system.
    * Bitmap fonts.
    * Chinese GBK fonts.
    * True Type fonts.
    * Stereo WAV playback.
    * Hardware MP3 decoding on PSP.
    * Resource manager.
    * Zipped resource support.
    * Frame based animation system using XML scripts.
    * Basic 3D functions, including support of rendering textured triangles, Quake 2 (MD2) model and OBJ model.
    * Port of HGE helper classes: hgeParticleSystem, hgeDistortionMesh and hgeFont.
    * Input system for English and Chinese.



Project page:
-------------
http://jge.googlecode.com/



Official forums:
----------------
http://jge.khors.com/



To create a new JGE++ project:
------------------------------
Change to "JGE\Tools" in a command prompt and type:

newproject project_name project_description

A project called "project_name" will be created in "JGE\Projects". You can find a VC2005 Express solution file there and you can open it up and start working on your own cool PSP game.



To build JGE++ for PSP:
-----------------------
Change to the JGE directory (say, in a cygwin prompt). 

Do either:

(1) type in "make" or "make 1xx" to build for 1.xx firmware, 
	OR
(2) type in "make 3xx" to build for 3.xx firmware.



To build a project for PSP:
---------------------------
Change to your project directory (say, in a cygwin prompt). Do either:

(1) type in "make" or "make 1xx" to build for 1.xx firmware, 
	OR
(2) type in "make 3xx" to build for 3.xx firmware.



Key mapping on Windows:
-----------------------

PSP                     WINDOWS
==================      ==================
UP/DOWN/LEFT/RIGHT      W/S/A/D
ANALOG CONTROL          UP/DOWN/LEFT/RIGHT
TRIANGLE                I
SQUARE                  J
CIRCLE                  L
CROSS                   K
SELECT                  CTRL
START                   ENTER
HOME                    F1
HOLD                    F2
NOTE                    F3
L                       Q
R                       E



Note for testing on PSP:
------------------------
Please remember to copy the entire folder "bin\Res" into the appropriate folder on PSP.



License:
--------
JGE++ is Licensed under the BSD license, see LICENSE in root folder for details.



Credits:
--------
The JGE++ Team is: 

- James Hui (a.k.a. Dr.Watson)
- Sijiu Duan (a.k.a. Chi80)



Special thanks to:
------------------
- Cheese (WAV playback code)
- Cooleyes (MP3 hardware decoder)
- Fan990099
- Firenonsuch
- Newcreat
- Subelf
- Youmentang
- Jasmine



Contact:
--------
Bugs and comments can be forwarded to jhkhui@gmail.com or sijiu49@gmail.com.
 


History:
--------

[2007.10.22]
- v1.0 released.

[2006.03.26]
- v0.2b released. 
- First version that enabled cross-platform development on Windows by using HGE
- Bundled with SkyAnimator and source code of StarBugz and Mario Demo.

[2006.03.12]
- first public release.
- PSP only.

________________________________________________________________________________________

Copyright (C) 2007 James Hui <jhkhui@gmail.com>
Copyright (C) 2007 Sijiu Duan <sijiu49@gmail.com>