Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (593)
Games in Android Showcase (168)
games submitted by our members
Games in WIP (647)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: 1 ... 5 6 [7] 8 9 10
 on: 2015-07-02 06:24:08 
Started by thedanisaur - Last post by BurntPizza
The file is 31MB, I'll look into it.

Is that a compressed file? If so, the in-memory size will be much larger. Just keep that in mind.

 on: 2015-07-02 06:22:07 
Started by thedanisaur - Last post by thedanisaur
@BurntPizza I made an edit. Also, I know I was just seeing if anybody had an idea before I started hacking away at non-audio related stuff.

@CopyableCougar4 The file is 31MB, I'll look into it.

 on: 2015-07-02 06:18:26 
Started by thedanisaur - Last post by CopyableCougar4
I just mean that the a large audio file not streamed will use a lot of memory, and in theory with some hardcore GC the memory usage could stay stable while requiring more time each frame to GC. Although I may be really wrong, so please correct me if I am.

 on: 2015-07-02 06:18:12 
Started by thedanisaur - Last post by BurntPizza
Then start removing things until the problem goes away. Start with the audio system if that's what's suspicious.
Tip: if you're using git, git-bisect is good here:

 on: 2015-07-02 06:16:14 
Started by thedanisaur - Last post by thedanisaur
@BurntPizza I have, there's no discernible different in profile results, I've done it multiple times just to make sure I'm not crazy.

Edit: FYI I'm using javax.sound.sampled.Clip if that makes a difference.

Edit2: actually that's not true, whenever I profile after swapbuffers is taking forever.

 on: 2015-07-02 06:14:48 
Started by thedanisaur - Last post by BurntPizza
Profile the app before and during slowdown.

 on: 2015-07-02 06:13:42 
Started by thedanisaur - Last post by thedanisaur
I'm a little confused by what you mean. If I have a large audio file, not streamed, then the RAM will stay stable but GC will kick in?

 on: 2015-07-02 06:09:03 
Started by CommanderKeith - Last post by CommanderKeith
Surely it's quite the opposite though; the API can *only* be expressed in one form,

That's a tautological argument.  The process(es) which the API expresses could be expressed in another form as a different API.

a precise set of class, field & method signatures.

And documented behaviour!  Without that the API is pretty much worthless.  With that, in particular in the specification of behaviour between components, you start to get the expression of the idea (IMO).

@Abuse's point is interesting. If copying the entire api is not possible, then compatibility is broken. Applying this logic to vmware and other hypervisors, which rip off entire operating systems' apis, they are all illegally copying (and distributing, @princec) and owe licensing fees to Apple and Microsoft.
Indeed, Java itself rips off windows apis such as the file system, or windowing toolkit, and every other api that exposes operating system functionality. Therefore oracle owes licensing fees to the operating system developers.
Obviously this is silly, but this chain of thought seems consistent with oracle's and some of your arguments.

 on: 2015-07-02 06:06:59 
Started by thedanisaur - Last post by CopyableCougar4
I see that you said that the memory size hovers at about 1000mb, but I would be willing to bet that if you were using audio with relatively long clips that weren't streamed that the usage could hover there with large slowdowns to GC and keep that ram usage stable.

 on: 2015-07-02 05:31:56 
Started by BurntPizza - Last post by thedanisaur
Stripped out a ton of legacy code(3 different input systems) and reworked a new input system into my game so everything is uniform and uses 1 input system. Nothing pretty to show as far as graphics go, but I made my code look nice, so win there.

Also, I don't know if anybody noticed, but this topic has been viewed over 300,000 times so far  Cool

Pages: 1 ... 5 6 [7] 8 9 10
deepthought (40 views)
2015-06-30 15:39:44

deepthought (43 views)
2015-06-30 15:39:09

deepthought (54 views)
2015-06-30 15:36:52

Za\'Anzabar (24 views)
2015-06-29 05:44:54

TritonDreyja (41 views)
2015-06-24 17:10:40

CopyableCougar4 (37 views)
2015-06-23 00:34:45

BurntPizza (43 views)
2015-06-21 20:36:46

cookiecompiler (85 views)
2015-06-11 15:42:53

cookiecompiler (48 views)
2015-06-11 15:41:14

NegativeZero (76 views)
2015-06-11 09:49:18
How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14 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‑
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!