Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2006, 07:01 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
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!

__________________
Reply With Quote
  #2  
Old 02-21-2006, 02:25 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #3  
Old 02-21-2006, 04:48 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
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.
__________________

Last edited by ZeLpH_MyStiK; 02-21-2006 at 05:21 PM..
Reply With Quote
  #4  
Old 02-22-2006, 05:30 AM
Infernix Infernix is offline
Inferno (Level Designer)
Join Date: May 2005
Location: U.S,Maryland
Posts: 1,288
Infernix is on a distinguished road
Send a message via AIM to Infernix
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.
Reply With Quote
  #5  
Old 02-22-2006, 05:44 AM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Are your video card drivers up to date?
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #6  
Old 02-22-2006, 02:34 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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)
Reply With Quote
  #7  
Old 02-22-2006, 05:30 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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?
Reply With Quote
  #8  
Old 02-22-2006, 06:33 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
1024x1024
Reply With Quote
  #9  
Old 02-22-2006, 08:53 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #10  
Old 02-22-2006, 10:29 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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).
Reply With Quote
  #11  
Old 02-23-2006, 12:57 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #12  
Old 02-23-2006, 01:00 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
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.
__________________
Reply With Quote
  #13  
Old 02-23-2006, 01:30 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #14  
Old 02-23-2006, 02:23 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote
  #15  
Old 02-23-2006, 06:06 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
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.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:33 AM.


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