Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am in the process of developing a 2D tilebased rpg with eclipse, lwjgl, and slick util.

For some reason eclipse seems to be lagging heavily which doesnt make sense as all i have rendering is a 64x64 test map using 16x16 tiles, the character, and text when i press enter.

To see if it is a problem with my code or with eclipse, i am trying to export it into a jar or exe and run it outside of eclipse.

Since i use png spritesheets and xml files to supply coordinates and map data, i need to also include a resource folder.

Ive tried exporting from eclipse as a jar, then adding that jar, the slick jar, and lwjgl jar into jarsplice, but it says error opening zip file, which i assume is that the resource folder is zipped when i eclipse creates a jar.

I need to know how to get the jar to run, and where i need to place the resource folder, and if i need to change any code to be able to access the resource folder. I think i saw something about the appdata folder being where you place such things, but i do not know how to use it.

P.S My code uses 3 spritesheets (Tiles, Character, Text), 4+ xml files(One for each spritesheet + one for each map), and uses Immediate mode rendering, so if the problem is that immediate mode isnt fast enough, should i go up all the way to VBO's, or would display lists suffice?

EDIT: I normally wouldnt think it was eclipse, however eclipse itself seems very slow lately.

Sometimes when i run my code, it works without lagging at all, and others it seems as if the framerate is less than 10.

Also sometimes basic functions in my code decide not to work. For instance i implemented a way so when the enter key is down three lines of text appear, sometimes when i run, they show up sometimes they don't.

Another instance ( I run in fullscreen mode ) is that sometimes when i hit run, my view will size up to fullscreen, but it still just shows eclipse, and i have to take my battery out to exit.

share|improve this question
    
I would look into VisualVM and profile your code. I doubt its eclipse that is causing the lag. –  mobo Aug 26 '13 at 0:43
    
I normally wouldnt think it was eclipse, however eclipse itself seems very slow lately, and sometimes when i run my code, it works fine and others it doesn't. For instance i implemented a way so when the kkey enter i down three lines of text appear, sometimes when i run, they show up sometimes they don't. Another instance ( I run in fullscreen mode ) is that sometimes when i hit run, my view will size up to fulscreen, but it still just shows eclipse, and i have to take my battery out to exit. I will look into VisualVM though, thank you. –  Ben Marshall Aug 26 '13 at 0:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.