Another Demo Build

Published February 04, 2011
Advertisement
Per Aardvajk's request, I'm uploading another build of my procedural island thingy. Unfortunately, this thing is like a bowl of Jell-o and I broke a few things this morning. This upload has the combat components taken out, since as of this moment they are non-functional. I've also reverted the enemy control component to a random walk which stupidly gets stuck on corners sometimes, since that component is part of what is currently broken. So pretty much all you can do in this one is walk/raft around and watch the dumb mobs dash around valiantly trying to run through mountains. Oh, and you can poof trees. Get near enough to a tree or group of trees and right-click near them, and they'll *poof* into stacks of lumber. Can't pick the lumber up yet, but that's on my todo list. I've disabled the Generate button, since now you can just walk to the edge of the map to get a new island. The transition between maps is not smooth; it will hang for a few seconds while the new one is built, there's not a fade or anything. Also, no state is saved so even if you go back to where you were before, you won't see the old island again. This is all still just very much prototype stuff, so nothing is final at all. And there may be bugs; oh, yes, many bugs. I fixed a few this morning related to changing the way entities are allocated, and I think I got the hang bugs smoothed out, but use at your own risk. I also noted a couple draw issues related to moving shadows to a different draw layer, so every now and then you get an overlap problem. Fixing that is on my plate right now, so it should be no biggie.

If you have any problems, let me know.


randommapdemo.zip



EDIT: Uploaded new version that logs some OpenGL info, adds a loading screen, and moves the player spawn point a little further away from the edge. If anybody tries this, has performance issues and wants to help me debug, then post the OpenGL info that is logged at the beginning of log.txt. Also, every 16 seconds the current framerate and Lua memory usage are logged, so include those lines as well. And thank you.
Previous Entry Resources and Stuff
Next Entry Foundational Stuff
0 likes 10 comments

Comments

BooBoo
The game is sooo slow, I see a white window for about 30 sec while the game is loading, after it's loaded it is not even playable I see 1-2 frames per second (1.8 Ghz, 1 GB ram, Radeon 9100 64 Mb).
February 05, 2011 08:47 AM
Aardvajk
[quote name='Boo Boo' timestamp='1296895622']
The game is sooo slow, I see a white window for about 30 sec while the game is loading, after it's loaded it is not even playable I see 1-2 frames per second (1.8 Ghz, 1 GB ram, Radeon 9100 64 Mb).
[/quote]

Weird, runs fine for me on a slightly faster CPU but slightly older graphics card. Takes about 2-4 seconds to generate the map (that's what the initial delay is I believe) then runs smooth as anything.

Nice work, JTippetts.
February 05, 2011 10:04 AM
JTippetts
[quote name='Boo Boo' timestamp='1296895622']
The game is sooo slow, I see a white window for about 30 sec while the game is loading, after it's loaded it is not even playable I see 1-2 frames per second (1.8 Ghz, 1 GB ram, Radeon 9100 64 Mb).
[/quote]

Hmmm, that's weird. I'm not doing anything tricky at all, just basic OpenGL fixed function stuff. I'll have to try to run it on some other computers and see if I can figure out what's up.



And thanks, Aardvajk.
February 05, 2011 03:52 PM
JTippetts
I uploaded a new build that adds some OpenGL vendor and version logging, adds a loading screen, and moves the player spawn a little bit further away from the edges to keep you from accidentally crossing the boundary too soon after entering the world. Boo Boo, if you check back here and wouldn't mind trying the new version, I would sure appreciate it. If you still have problems, let me know.
February 05, 2011 05:04 PM
BooBoo
I've downloaded the new version.
Loading time = 21 sec
The splash screen is nice -> but while waiting I moved the window and white background appeared again.

It's still lagging a lot, can't do too much, I made it to the land, the walking sometimes works, sometimes not, goblin just jumps a few squares, the walking animation runs 0.5/1 frame per sec.

GenericRPG takes 99% of processor in task manager.
Minimizing app takes 1-2 secs, restoring 2-3 secs.

Log file:
[url="http://www.gosu.pl/randommapdemo-log.txt"]http://www.gosu.pl/r...mapdemo-log.txt[/url]

OpenGL info:


Microsoft Corporation
GDI Generic
1.1.0
GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture



FPS logs:

Console Print: (0) FPS: 3 Lua mem: 4518
Console Print: (16) FPS: 1 Lua mem: 6240
Console Print: (32) FPS: 1 Lua mem: 6027
Console Print: (48) FPS: 0 Lua mem: 7949
Console Print: (64) FPS: 1 Lua mem: 4270
Console Print: (80) FPS: 18 Lua mem: 4261
Console Print: (96) FPS: 25 Lua mem: 4994
Console Print: (112) FPS: 26 Lua mem: 7568
Console Print: (128) FPS: 1 Lua mem: 7277
Console Print: (145) FPS: 1 Lua mem: 6858
Console Print: (160) FPS: 0 Lua mem: 6939
Console Print: (177) FPS: 0 Lua mem: 5619
Console Print: (193) FPS: 0 Lua mem: 7978
Console Print: (209) FPS: 0 Lua mem: 6437
Console Print: (225) FPS: 0 Lua mem: 4927
Console Print: (241) FPS: 0 Lua mem: 4559
Console Print: (257) FPS: 0 Lua mem: 7252
Console Print: (273) FPS: 0 Lua mem: 4430
Console Print: (289) FPS: 0 Lua mem: 6713
Console Print: (306) FPS: 0 Lua mem: 5070
Console Print: (322) FPS: 0 Lua mem: 7194
Console Print: (338) FPS: 0 Lua mem: 5096
Console Print: (353) FPS: 0 Lua mem: 7696
Console Print: (370) FPS: 0 Lua mem: 6701
Console Print: (385) FPS: 0 Lua mem: 3982
Console Print: (401) FPS: 12 Lua mem: 7901
Console Print: (418) FPS: 13 Lua mem: 6065
Console Print: (433) FPS: 0 Lua mem: 4679
Console Print: (449) FPS: 1 Lua mem: 7068
Console Print: (465) FPS: 1 Lua mem: 4585
Console Print: (481) FPS: 1 Lua mem: 7402
Console Print: (497) FPS: 1 Lua mem: 4991
Console Print: (513) FPS: 1 Lua mem: 7692

My operating system is XP SP3.
February 05, 2011 06:37 PM
JTippetts
Okay, it looks like you are running with Microsoft's software OpenGL drivers. Have you installed updated drivers for your video card? Whenever you see the vendor is Microsoft and the version is 1.1, that typically means your drivers are not current and hardware acceleration will not be enabled.

The loading screen currently doesn't update; it just draws the screen, then the thread goes into a "hang" while the world is generated, so anything that trashes the framebuffer will trash the loading screen. A world generate sequence using Lua co-routines to update a progress bar and keep the framebuffer "current" is still pending, but that'll be a later-stage thing once I finalize a few systems.

Thank you for your feedback. :D
February 05, 2011 07:27 PM
BooBoo
That wasn't easy to find proper drivers for my video card, latest didn't work, but finally it works, using ati catalyst 5.8

The game is now playable I get 20-25 FPS (but the loading screen still takes quite a long time).

Now it's time for some important question. Why all other games worked fine using MS drivers? I installed Torchlight a week ago, it has quite decent graphics and worked great.
February 05, 2011 10:56 PM
JTippetts
That's good that you got it. The loading does take a long time, I haven't done enough cacheing in the level generator, but even with cacheing it's still a pretty beefy process right now.

My guess is the other games were using Direct3D which works right out of the box on most Windows installs.
February 06, 2011 12:50 AM
BooBoo
My suggestion to the final version of the game is to display some message to the user if the opengl drivers are missing.
February 06, 2011 07:53 AM
JTippetts
I do have an abstraction layer in the works that will allow either Direct3D or OpenGL to be selected. If/when I get so far as to release this as a real game, I'll most likely either base the Windows build on D3D and the Linux/Mac builds on OpenGL, or allow the user to select his/her preferred rendering device.
February 06, 2011 06:33 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement