Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (843)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  java Fmod and GAGE  (Read 1745 times)
0 Members and 1 Guest are viewing this topic.
Offline jompe71

Junior Newbie




Java games rock!


« Posted 2005-09-08 18:09:14 »

I've posted this Q in the newbee's forum but got no replies, so I'll try my luck here instead. I'm making a 2D game, NOT using anything but plain doublebuffer images and plain core Java2d, drawImage(), etc. As timer I use GAGE and rendering at a fixed 60 FPS rate. When doing some profiling, I notice that GAGE uses 100% CPU of the available to the JVM. Of that about 15% is to drawImage() calls, game logics and and other updates is practically zero.
I'm not sure how to interpetrate the profiling result but there seem to me as the rendering has been done in time and that there should be time over for other thing within the current framerate. And without sound the game runs smooth...

Now i wanna add some sound to the game. First i used GAGE sound implementation around Java sound API, but as sound quallity is a factor as important as the graphics in the game i wanna use mp3 sounds. This excludes the GAGE API which doesn't support dito. I stumbled across FMod and the java wrapper around it from http://topresult.tomato.co.uk/~jerome/Fmod/NativeFmod.

It was as easy to implement as i states, but my implementation of it REALLY slowed the game down, making it impossible to play and therefore accept. Has anyone done such implementation along with GAGE ? Shall the calls to Fmod be running in its own thread ? Please enlight me dudes...

If anyone intends to response but need some pseudo code or snippets just say so... :O)
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2005-09-08 18:25:50 »

you could try the lwjgl implementation of fmod to check if it has anything with that to do ?

Offline TheAnalogKid

JGO Coder


Projects: 2



« Reply #2 - Posted 2005-09-08 20:16:22 »

Is that true that GAGE timer is so CPU intensive as jompe71states?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jompe71

Junior Newbie




Java games rock!


« Reply #3 - Posted 2005-09-09 04:37:12 »

Take a look a http://java.dnsalias.com/ , the home of GAGE. Scroll down to the main page bottom...
Offline TheAnalogKid

JGO Coder


Projects: 2



« Reply #4 - Posted 2005-09-09 13:22:17 »

OK thanks! That explains all.

Pages: [1]
  ignore  |  Print  
 
 

 
EgonOlsen (37 views)
2018-06-10 19:43:48

EgonOlsen (20 views)
2018-06-10 19:43:44

EgonOlsen (39 views)
2018-06-10 19:43:20

DesertCoockie (186 views)
2018-05-13 18:23:11

nelsongames (122 views)
2018-04-24 18:15:36

nelsongames (121 views)
2018-04-24 18:14:32

ivj94 (861 views)
2018-03-24 14:47:39

ivj94 (122 views)
2018-03-24 14:46:31

ivj94 (758 views)
2018-03-24 14:43:53

Solater (139 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!