Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Feature request
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-06-2013, 03:31 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Offscreen Drawing Options

One thing that has always bothered me is how objects tend to quickly appear and disappear as soon as they enter or leave the screen area. It happens very suddenly, and can be distracting or downright jarring in some cases.

I understand this is probably for the sake of saving resources, but for people who can actually run Graal very well, this is an annoyance. It just looks bad when objects pop in and out of view as soon as you get too far away from them, and it would be very nice to have an option to turn offscreen drawing on if your computer is able to handle it.

I'm not suggesting that everything offscreen be drawn, but it would be nice to have objects and particle effects drawn that are at least within a 1-2 map radius outside of your current resolution settings.

Here is an example of what I'm talking about.

Reply With Quote
  #2  
Old 06-07-2013, 03:45 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Rather than removing this "optimisation" perhaps an additional option could be added to allow for extended drawing distance with a flag that can be read by scripts in the case developers develop specific content that happens to rely on this feature.
__________________
Quote:
Originally Posted by Crono View Post
No look at it, Stefan is totally trolling Thor. Calling Classic a "playerworld" (something it's not supposed to be) is the ultimate subtle insult to a true fan.

It's genius.
Reply With Quote
  #3  
Old 06-07-2013, 04:21 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by Tricxta View Post
Rather than removing this "optimisation" perhaps an additional option could be added to allow for extended drawing distance with a flag that can be read by scripts in the case developers develop specific content that happens to rely on this feature.
It's an option which would need to be integrated into the client, as this bug happens at some point or another on literally every server.

There is already a hackish method for continuing to draw certain objects as they travel offscreen, but if you were to integrate offscreen drawing options into the client itself, you wouldn't have to worry about putting additonal lines of code into each and every script.

And yeah, it's not so much an 'optimization' as it is an impediment. Personally, I would rather devote a tiny bit more vram to draw stuff offscreen than watch things constantly flicker as I move around.

It's even worse on Kingdoms. Take a look at all the foliage that blinks out of existence as you move.


Last edited by Draenin; 06-07-2013 at 08:07 PM..
Reply With Quote
  #4  
Old 06-07-2013, 04:42 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
You can change the sync distance via serveroptions and script, I think. I don't know the specifics so you'd just have to search through Stefan's posts.

The problem is if it's set exactly to the player's screen(as it should be), players/npcs pop into view since it doesn't "kick in" until they are IN view.

Stefan just needs to change it so syncing is expands a bit out from what's defined in the sync range.
Reply With Quote
  #5  
Old 06-07-2013, 02:17 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
So far, this is all I've found.

Thread
GraalBible Entry

From what I've read, it's only useful on iPhone servers, but I gave it a shot anyway.

Tried setting both syncdistancex and syncdistancey to 50, then 500, on both true and false settings for syncbydistanceinside.
Then also tried screenwidth+500 and screenheight+500 on both settings for syncbydistanceinside as well.

No luck with it yet.
Reply With Quote
  #6  
Old 06-07-2013, 06:25 PM
Stephen Stephen is offline
Boom!
Stephen's Avatar
Join Date: May 2004
Location: San Francisco
Posts: 10,410
Stephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud of
Yea, this was a problem for me on GK for years and even more on my retina laptop screen. Screens are only going to get bigger and more dense, would be nice to get a fix for this.
__________________
Reply With Quote
  #7  
Old 06-10-2013, 01:06 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
It only displays objects which are on the screen
There are a few ways to get around the clipping for stuff like particle effects:
- use setshape and display the particles more in the middle of the npc, not at 0,0
- when using particles in ganis, you can put some visible or invisible graphics (1x1 pixel) somewhere outside the npc image to make graal think that the npc is covering a larger area, because it's calculating the area covered by the gani (only set the ani, not image or setshape)
Reply With Quote
  #8  
Old 06-10-2013, 03:24 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by Stefan View Post
There are a few ways to get around the clipping for stuff like particle effects
This is the 'hackish method' I was talking about. And it is impractical, because you'd have to apply it to each and every NPC that has this problem.

We shouldn't have to get around defects in the game. If we can get stupid features like cartoon GUI windows and a fail-tastic Games Server, we ought to be able to get basic features like this.

Do you see the sheer amount of objects that do this on Kingdoms? Nobody is going to fix all that by going back to revise hundreds of scripts.
Reply With Quote
  #9  
Old 06-10-2013, 03:46 PM
Stephen Stephen is offline
Boom!
Stephen's Avatar
Join Date: May 2004
Location: San Francisco
Posts: 10,410
Stephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud of
Quote:
Originally Posted by Draenin View Post
This is the 'hackish method' I was talking about. And it is impractical, because you'd have to apply it to each and every NPC that has this problem.

We shouldn't have to get around defects in the game. If we can get stupid features like cartoon GUI windows and a fail-tastic Games Server, we ought to be able to get basic features like this.

Do you see the sheer amount of objects that do this on Kingdoms? Nobody is going to fix all that by going back to revise hundreds of scripts.
I think what Draenin is trying to ask for is that it clips the screen edges plus a margin, ie "left most side minus 150px"
__________________
Reply With Quote
  #10  
Old 06-10-2013, 04:10 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by Stephen View Post
I think what Draenin is trying to ask for is that it clips the screen edges plus a margin, ie "left most side minus 150px"
Basically, yes. It would be nice to have fairly wide margins, though, as some particle effects like the first one I showed can be fairly large.
Reply With Quote
  #11  
Old 06-11-2013, 01:05 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
It's not a defect, just some more work in some cases for the devs, but greatly improves speed / reduces visual lag
Reply With Quote
  #12  
Old 06-11-2013, 02:10 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by Stefan View Post
It's not a defect, just some more work in some cases for the devs, but greatly improves speed / reduces visual lag
But for those of us who do not experience much video lag, could you include a little checkbox or something in the F3 menu that would expand the margins?
Reply With Quote
  #13  
Old 06-11-2013, 02:23 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Draenin View Post
But for those of us who do not experience much video lag, could you include a little checkbox or something in the F3 menu that would expand the margins?
Why would you want an option that alters the game drastically for each individual? Either it should be a serveroption, or none at all.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #14  
Old 06-11-2013, 04:41 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by xXziroXx View Post
Why would you want an option that alters the game drastically for each individual? Either it should be a serveroption, or none at all.
Because Stefan seems to think that expanding the drawing area for all players would make many people complain. But for those of us who actually have nice hardware setups, it would hardly be an issue.

I wouldn't be opposed to new serveroptions for it instead, though, if that were possible.
Reply With Quote
  #15  
Old 06-11-2013, 05:02 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Stefan View Post
It's not a defect, just some more work in some cases for the devs, but greatly improves speed / reduces visual lag
It does, but it needs some margin. It's rendering the exact screen area, so players/NPCs don't render until they're ON the screen, so they POP in. The rendering distance just needs to be larger than the screen area.

Think about how you render tiles in the scrolling camera. You don't want tiles to render when they're actually in the screen, but just outside.
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 12:17 AM.


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