Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Resolved: v4 Lag (https://forums.graalonline.com/forums/showthread.php?t=64259)

ZeLpH_MyStiK 02-21-2006 07:01 AM

Resolved: v4 Lag
 
Graal v4 seems to lag on certain parts of certain levels. I know I'm being vague, but I don't know the exact problem. I've had this problem ever since the public release of v4. It occurs in certain levels like:
N-Pulse: level3.graal, cloud_j08.nw
Maloria: mainhouse.nw
The lag occurs only on certain parts of the level. Coordinates above 20-y seem to be really laggy in level3.graal on N-Pulse. The upper half of cloud_j08.nw also seems to be really laggy. mainhouse.nw on Maloria is laggy in the middle-bottom half of the level. In the process of trying to find a solution, I've removed all the weapon npcs in my attributes as well as flags, yet it was still laggy.

I'm using a Nvidia gfx card with the most up-to-date driver as well as directx. i'm running a winxp platform.

Graal console shows no error:
NPC Code:

Created DirectDraw object
Initialized Direct3D7
Initialized DirectDraw
Graphic Capabilities:
Drawing of alpha blended textures: true
Textures with non-power-of-2 size: false
3D Textures with non-power-of-2 size: false
2D during 3D scene: true
Use 32 bit alpha: true
Initialized Direct3D7
Graal has been activated!


Admins 02-21-2006 02:25 PM

The only big problem that I see in those levels is that they are using pics1.png for npcs, which is not good since pics1.png is a very huge texture.

ZeLpH_MyStiK 02-21-2006 04:48 PM

So does level2.graal on N-Pulse as well as other levels on the server, but those don't make Graal4 lag.

For example:
tb_icedungeon2-1.nw on Maloria does not lag me.
tb_icedungeon2.nw on Maloria does lag me

These are essentially the same, yet one lags me while the other does not. However, it does seem that tb_icedungeon2.nw lags me less towards the top of the level.

Infernix 02-22-2006 05:30 AM

Zz I was on babylon with graal4 when there was about 100 people or so. Graal4 causes me to lag horribly as well as others. I got on graal 2 and I didnt get one bit of lag. I have a 2.8ghzP4 ,1.5gb of ram ,Radeon X850pro and for some odd reason Im pretty sure this is quite enough to run a 2d game. So Ima just take a guess that graal4 isnt at all faster but instead its even slower. Sure hope you dont disable graal2 and force everyone to use graal4 until it plays as smooth as the original.

Maniaman 02-22-2006 05:44 AM

Are your video card drivers up to date?

Admins 02-22-2006 02:34 PM

v4 is faster than v2, the only case where it can be slower is that you don't have a graphics card driver installed or only a buggy driver, and it is running in software mode. It might be slow in that case, but at least it's working. Please post your graal4console.log (Infernix)

jake13jake 02-22-2006 05:30 PM

Quote:

Originally Posted by Stefan
The only big problem that I see in those levels is that they are using pics1.png for npcs, which is not good since pics1.png is a very huge texture.

yea... 512 for max image width/height, right?

Admins 02-22-2006 06:33 PM

1024x1024

jake13jake 02-22-2006 08:53 PM

Quote:

Originally Posted by Stefan
1024x1024

yea, and isn't pics1 2048 width? Maybe there should be an error output when NPCs try to load an image that is bigger than that. Probably would help people catch it more easily (If there isn't one already). Also, is the online tile editor using pics1.png, pics1.png split in two, or does the maximum image width not apply to the new gui elements? If there wasn't so much work that needed to be done on Classic, I'd definitely help with the tile editor. The cursor selector and its interpretation is probably the most important thing (select, copy, move, paste, delete). Scripting the GUI used to be the hard part. I still haven't gotten to check out those elements though.

Admins 02-22-2006 10:29 PM

The online tile editor is using a GuiDrawingPanel, and "TILES" as image name when drawing into the panel. When drawing TILES then it is automatically drawing the correct tiles (including tile definitions).

jake13jake 02-23-2006 12:57 AM

Quote:

Originally Posted by Stefan
The online tile editor is using a GuiDrawingPanel, and "TILES" as image name when drawing into the panel. When drawing TILES then it is automatically drawing the correct tiles (including tile definitions).

I like that.

ZeLpH_MyStiK 02-23-2006 01:00 AM

Quote:

Originally Posted by Stefan
1024x1024

level2 as well as level3 on N-Pulse both use pics1-like tileset. level3 lags me while level2 does not. So I don't think it's a problem with the tileset size.

jake13jake 02-23-2006 01:30 AM

Quote:

Originally Posted by ZeLpH_MyStiK
level2 as well as level3 on N-Pulse both use pics1-like tileset. level3 lags me while level2 does not. So I don't think it's a problem with the tileset size.

Believe me: I accidentally uploaded houses with pics1.png doors... will lag the hell out of you.

Admins 02-23-2006 02:23 AM

Quote:

Originally Posted by ZeLpH_MyStiK
level2 as well as level3 on N-Pulse both use pics1-like tileset. level3 lags me while level2 does not. So I don't think it's a problem with the tileset size.

It's not the tileset, the problem is when npcs are using them, e.g. for displaying doors or bushes. The lag might also depend on how many of those npcs are on the screen

ZeLpH_MyStiK 02-23-2006 06:06 PM

Quote:

Originally Posted by Stefan
It's not the tileset, the problem is when npcs are using them, e.g. for displaying doors or bushes. The lag might also depend on how many of those npcs are on the screen

Aah. I removed the npcs there, it is no longer laggy. Thank you.

Admins 02-23-2006 11:47 PM

Good to hear :o


All times are GMT +2. The time now is 11:09 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.