Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (483)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  List of jvm options  (Read 4990 times)
0 Members and 1 Guest are viewing this topic.
Offline NVaidya

Junior Member




Java games rock!


« Reply #30 - Posted 2004-09-26 16:23:15 »

Quote


<snip>
If I need something pooled, I don't do it as part of the interface to the object, I have the class that's using the object do it's own pooling. That way pooling is an individual choice of the user. It also keeps the code clean by not exposing pooling to the outside user. <snip>


SciVis applications, at least the ones I'm involved with, do something similar to that if an opportunity exists. A descriptive name for this could be local-temporary-object-recycling. Local because the pooling impact is restricted to a class or a bunch of very related classes comprising a single visual component, and temporary because the pool is destroyed if the visual component is destroyed. The latter is typically done because anticipating what goofy thing the user might request next is quite hard in a scivis application. With this approach, because the parameters defining the visual component are clearly known, it is easier to tune the local pool size if you want to. This kind of local object "recyling", IMO, may be seen to be a more restricted version of the generic "Object Pooling".

And again from a scivis perspective, gc pauses before a visual component is created or after it is destroyed is permissible, but certainly not during the course of its animation. But I can understand the difference here with respect to games - you can pre-allocate only so many number of objects. And when do you choose to create/destroy objects on the fly is a much more difficult problem.

Overall, as I might have already expressed it many moons ago, (1) I usually code with a mistrust for the gc; (2) gc fine tuning is futile because of the very cross-platform nature of my application and because I have absolutely no clue about even the Xmx memory size that a user might choose to specify. Having said that, however, with respect to games, if you know your (major) target platform, then using something like jvmstat may be a worthwhile excercise.

Gravity Sucks !
Offline Mithrandir

Senior Member




Cut from being on the bleeding edge too long


« Reply #31 - Posted 2004-09-27 00:31:15 »

Yup. And guess where I mainly work - sci-vis Smiley   From a user's perspective, stutter is not acceptable, but slowing the frame rate down to be consistent is OK.  Any pause due to GC is not acceptable.  I would be highly surprised if any gamer would accept stutter, even slight ones.

The site for 3D Graphics information http://www.j3d.org/
Aviatrix3D JOGL Scenegraph http://aviatrix3d.j3d.org/
Programming is essentially a markup language surrounding mathematical formulae and thus, should not be patentable.
Offline trembovetski

Senior Member




If only I knew what I'm talking about!


« Reply #32 - Posted 2004-09-27 04:16:41 »

Quote
I would be highly surprised if any gamer would accept stutter, even slight ones..


I guess you haven't played Doom3 on 'recommended hardware'.. I think you'll be surprised to find how much gamers would accept if the game is good enough =)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #33 - Posted 2004-09-27 09:09:04 »

Yes, for example the unreal engine has garbage collection and there is the occasional stutter there. I'm not 100% certain though this is in fact due to unreal's GC (there's no way to tell for sure), but still...
Also, 3D games usually have varying framerates anyway (except maybe when run on very fast hw and using vsync)...

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #34 - Posted 2004-09-27 09:29:15 »

Stuttering's caused by all sorts of things - texture uploads, geometry uploads, sound decodes, frame time misses, some process in the background waking up for some reason - and GC is just another of those little, tiny intermittent things that you barely notice now they've added the tuning options, if it happens at all. Mithrandir has a point about portability - but that's his problem Wink So long as I get my stuff running peachy on the 3 big 'uns I'm not so bothered!

Cas Smiley

Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (19 views)
2014-08-22 19:31:30

atombrot (30 views)
2014-08-19 09:29:53

Tekkerue (26 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (24 views)
2014-08-16 06:12:11

Rayexar (63 views)
2014-08-11 02:49:23

BurntPizza (40 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (38 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!