Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (686)
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  Discussions / General Discussions / Re: Eclipse vs. Netbeans on: 2011-04-07 19:56:50
Check both of it then choose.

I choosed Netbeans because I loved it much better for the first sight...
2  Game Development / Newbie & Debugging Questions / Re: Is java a good language to make 8-bit games? on: 2011-04-07 19:51:24
Java is ok... Check Minecraft if you want to see some java 8bit games. Smiley
3  Game Development / Newbie & Debugging Questions / Re: What might make Graphics2D.drawImage() slow? on: 2011-04-05 19:48:05
Well thanks a lot, this is usefull.
4  Game Development / Newbie & Debugging Questions / Re: What might make Graphics2D.drawImage() slow? on: 2011-04-05 15:34:29
Thanks for your answer.

I found that if the BufferStrategy's content lost before the first draw, this will happen. I did this to fix it:

            //If at the first run the mainFrm.getBufferStrategy().contentsLost()
            //returns true then the CPU usage of the program will jump up to 50%
            //this doesn't happens on every PC and it must be a JRE Bug.
            //We just do a lame fix here, but I don't have any other idea.
            if (mainFrm.getBufferStrategy().contentsLost() && isFirstBufferCheck) {

            if (isFirstBufferCheck) {
                isFirstBufferCheck = false;

This really sucks, but I can't do any better right now.
5  Game Development / Newbie & Debugging Questions / Re: What might make Graphics2D.drawImage() slow? on: 2011-03-31 13:31:21
Hy guys!

I have this problem as well. :S

I try to draw a part of an image using this code:

g.drawImage(Main.getImageCache().getImage("tileset_" + Main.getMapManager().getMapData().getTileset()), xPos, yPos, xPos + 64, yPos + 32, tileXOffset(firstTileImg), tileYOffset(firstTileImg), tileXOffset(firstTileImg) + 64, tileYOffset(firstTileImg) + 32, null);

The image is a VolatileImage. It draws the image good, it's too slow, using 50% CPU all the time while drawing 60-70 images.

EDIT: Sometimes it's using 0-5% CPU, sometimes using 50%. I profiled it when it using 50%, and I figured that the drawn method makes it that bad.

I create the VolatileImage as a TRANSCULENT image.

Anyone can help pls?

(I know I'm begging for help in my first post, but I'll be online. I love this site.)


Guys I tired to profile again, here is the result:

Pages: [1]
Dwinin (61 views)
2015-11-07 13:29:08

Rems19 (76 views)
2015-10-31 01:36:56

Rems19 (68 views)
2015-10-31 01:32:37

williamwoles (103 views)
2015-10-23 10:42:59

williamwoles (91 views)
2015-10-23 10:42:45

Jervac_ (105 views)
2015-10-18 23:29:12

DarkCart (131 views)
2015-10-16 00:58:11

KaiHH (113 views)
2015-10-11 14:10:14

KaiHH (153 views)
2015-10-11 13:26:18

BurntPizza (166 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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!