• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

tjbrosna

[java] URGENT - Major Applet issue

6 posts in this topic

I have developed a java applet game. However their is some major performace issues. The game is intended to run on browsers so I have only used jdk1.1.x.The game speed is really inconsistent. I need ideas to why as this is going out on a demo cd in a day or 2. It can run fine one machine(fps 20 - 30) and then on another machine with the same spec really slow(fps ~5).Put it this way, on a PI 133 it runs along fine and on a Athlon 800 with a Radeon 256 DDR it runs terrible so it cant be the machine, it must be the java runtime environment, virtual machine etc. Has anyone got any ideas to what I can do, where I can look for help or any suggestions at all?? Thanks for your help, T.J
0

Share this post


Link to post
Share on other sites
The problem may come from the browsers on the two machines as the specs show they are radically different, and that means the amount of installed software will differ so the best idea is to run the game in Applet viewer on both machines and see how they compare (no slow down from the parent browser).

I get a lot of slow down from my OS whilst using the keyboard due to the key repeat fired from the OS when you hold a key down, apprently this has a major effect on java games running on Posix based machines more than Windows/MacOS.

Well good bug hunting other wise



Phillip Stiby BSc(HONS)

I program therefore cant spell!
0

Share this post


Link to post
Share on other sites
Here are some things to look for.

1) See if the slowdown is linked to any particular color depth. 8 bit and 32 bit seem to work alot better than 16 bit displays.

2) If you relly need consistancy, consited using the java plug-in. At least then you can be guanteed that you will be using the sun jdk.

3) If you go with the plug-in consiter using the new BufferdImage in Java 1.2 in place of Image, as I have consiterable improvments in performace using this insted.

4) Make sure your drawing code is happening independant of other activity.

Otherwise just overall bug hunting. Make sure when testing to run it under netscape, appletviewer, and MSIE if you opt not to use the plug-in.

Without looking at the source there''s not alot more I can do.
0

Share this post


Link to post
Share on other sites
Changing the color depth dosent do anything. It runs fine under jdk1.2.2 and jdk1.3 appletviewers. If i open up jbuilder in the background(doing nothing, so it must change the jre) the game runs fine in the netscape and MSIE. This game loads in a load of images approx 50 gifs and 5 jpgs. Could this make a difference(I doubt it)??

Seeing the code is not an option as its way too big but heres a stripped down version of the main game loop:

//-------------------------------------------//
public void run()
{
while(Thread.currentThread() == gameThread)
{
switch(gameStatus)
{
case PLAYING:
{
if (zombieLevelRef.isFinished())
{
if(currentLevel == 2)
{
setEnding();
gameStatus = ENDING;
}
else
gameStatus = CHANGING_LEVEL;
break;
}
zombieLevelRef.play(offScrGC);
break;
}

// Loads of other case to handle other game states
//....
}
repaint();
try
{
Thread.sleep(20);
}
catch(InterruptedException e)
{}
}
}

Thanks again,
T.J

0

Share this post


Link to post
Share on other sites
The applet size is 800x600 which is probably why the frame rate is so slow.The player area is 800x400 and the interface is 800x200. So does anyone think this is the problem??

T.J
0

Share this post


Link to post
Share on other sites
Make sure you have JIT enabled in the browser and that the java-console isn''t on Just to make sure..



''''2+2=5 for extremely large values of 2.''''
0

Share this post


Link to post
Share on other sites