Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Porting form JDK 1.4.x  (Read 1251 times)
0 Members and 1 Guest are viewing this topic.
Offline Maximonium

Innocent Bystander

Java games rock!

« Posted 2004-10-21 02:21:43 »

Hey all, my first post  Grin,

Anyway, today I finally downloaded the JDK 1.5 and compiled a 2d game engine that I've worked on for the past few weeks. Now while compiling I got several "Note: unchecked or unsae operations" in reguard to the add method of java.util.LinkedList. I assume this has to do with the new Generic types. Also I noticed a big framerate drop from my previous compiles.

The point I want to raise is what suggestions do people have for porting 2d graphics code between 1.4.x and 1.5 . I've seen use of the System.nanoTime() method that apparently works better (I'm just using System.getCurrentMillis() Huh). Also are there any java 2D optimizations techniques new to 1.5?

Offline JuddMan

Senior Devvie

Medals: 1

Your Ad Here

« Reply #1 - Posted 2004-11-27 13:54:47 »

the unsafe warnings are telling you you aren't making your lists type-specific... i think it's more of a safety measure to warn you you might add something that is not supposed to go in the list, and personally, i just ignore it, as to code using lists the way they want you to is not backwards compatible to 1.4 compilers. (having said that, i do appreciate the value of typed lists...)

NanoTime will get you the highest possible precision on your timing, so that means you don't need to rely on addons such as the gage timer for precision.

i haven't personally noticed any real performance change using Java2D for my game... but you'll probably only gain for special effects and transparency.
Pages: [1]
  ignore  |  Print  

EgonOlsen (45 views)
2018-06-10 19:43:48

EgonOlsen (25 views)
2018-06-10 19:43:44

EgonOlsen (47 views)
2018-06-10 19:43:20

DesertCoockie (202 views)
2018-05-13 18:23:11

nelsongames (127 views)
2018-04-24 18:15:36

nelsongames (126 views)
2018-04-24 18:14:32

ivj94 (867 views)
2018-03-24 14:47:39

ivj94 (128 views)
2018-03-24 14:46:31

ivj94 (771 views)
2018-03-24 14:43:53

Solater (143 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!