Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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  Game Development / Performance Tuning / Re: Chunk Snapshot on: 2012-09-28 00:54:58
Hey guys, sorry I haven't replied, computer was brokededed.. Shocked
Anyway thanks davedes, that helped alot Smiley.
2  Game Development / Performance Tuning / Chunk Snapshot on: 2012-09-18 23:32:49
Hey guys, not sure if this is the right place for this but here it goes:
I'm working on a tile engine, like 2d minecraft or whatever.  I am organizing the blocks in chunks and draw a whole chunk if any of it is on-screen.  If I am drawing like 20 chunks or something like that then its no problem (default zoom and screen size only 12 chunks MAX are drawn anyway).  BUT, when the user zooms out and a few hundred chunks need being drawn with 256 blocks in each of them, it obviously drops the FPS quite significantly.

I was wondering if it would make any sense at all to take some sort of "chunk snapshot" where it does a one time thing and draws all the blocks in the chunk onto an image and every draw sequence after that just draws that image.  I THINK this is a good idea, and I think I picked it up from somewhere else (I'm not that clever Tongue) but just in case I need some validation xD

IF this makes sense and would boost performance, how exactly could I go about doing this? (I'm using Slick2d BTW)
Thanks

EDIT:  Also if It's unclear what I'm asking just tell me Smiley
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.

xsi3rr4x (54 views)
2014-04-15 18:08:23

BurntPizza (52 views)
2014-04-15 03:46:01

UprightPath (66 views)
2014-04-14 17:39:50

UprightPath (49 views)
2014-04-14 17:35:47

Porlus (66 views)
2014-04-14 15:48:38

tom_mai78101 (90 views)
2014-04-10 04:04:31

BurntPizza (150 views)
2014-04-08 23:06:04

tom_mai78101 (246 views)
2014-04-05 13:34:39

trollwarrior1 (204 views)
2014-04-04 12:06:45

CJLetsGame (211 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!