Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Games Center / Contests / Re: Contest with CPU/RAM usage resrtiction? on: 2013-09-18 18:37:10
@Damocles Yes, although I would find this quiet interesting to do, this would indeed result in very odd looking code and would be very hard to judge. Judges would have to look through the source code of every game to make sure they don't store anything in another variable. Also, I don't think there would be very many participants for a competition like that. And I don't even wanna think about what a pain it would be to be unable to use a String, but instead be forced to save the ASCII code of every character in an array of intergers. xD

@kappa Yes, I guess that would be the best way indeed, unfortunately, like SHC stated, you have little to no control over the garbage collector and thus it would be very hard to write a game of wich you can be the memory usage stays just under the maximum.

I was just trying to think of a new way of limitation, came up with this idea and thought I'd throw it here and see other peoples opinions. However, I think I am convinced now that this is not going to work at all.
2  Games Center / Contests / Re: Contest with CPU/RAM usage resrtiction? on: 2013-09-18 16:47:26
Oh yeah, how could I forget that...

Well, nevermind then xD
3  Games Center / Contests / Contest with CPU/RAM usage resrtiction? on: 2013-09-18 16:27:58
Hey all,

I don't know a lot about hardware, nor do I have any idea what's going on inside my computer when it's running a game/program, but I thought of something and I was wondering of this would be possible.
The idea is to have a game contest with a maximum amount of memory you can use at any time while running the game. I don't mean file size, but more like RAM or CPU usage, so your have to be carefull with your calculations and release eny memory immediately when you don't need it anymore and stuff like that. Only I'm not sure if this is measurable and if the results are reliable, or if this is also dependent on wich hardware the game is running and maybe some other factors.

So, what do you think? Would this be possible? And just as important: Would this be fun?
4  Java Game APIs & Engines / OpenGL Development / Re: 2D Translucent Sprites in 3d (2.5D) on: 2013-09-07 14:06:20
I've had this exact same problem. (thread)
When initializing your OpenGL, you should put the folowing 2 lines in:
1  
2  
glAlphaFunc(GL_GREATER, 0.1f);
glEnable(GL_ALPHA_TEST);

This will tell openGL not to write pixels with a depth (equal to or) lower than 0.1 to the depth buffer and will thus solve your problem.

I hope it helps, it worked for me.
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

ctomni231 (32 views)
2014-07-18 06:55:21

Zero Volt (28 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (25 views)
2014-07-16 23:30:00

Cero (40 views)
2014-07-16 00:42:17

Riven (42 views)
2014-07-14 18:02:53

OpenGLShaders (29 views)
2014-07-14 16:23:47

Riven (29 views)
2014-07-14 11:51:35

quew8 (26 views)
2014-07-13 13:57:52

SHC (63 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!