Re: fov algorithms comparison method
- From: jice <jice.nospam@xxxxxxxxx>
- Date: Tue, 20 Jan 2009 13:28:50 -0800 (PST)
On 20 jan, 17:16, b0rsuk <jaze...@xxxxxxxxx> wrote:
I think two more test could be used:
worst case scenario, empty field (20x20, 100x100, 600x600). It could
help illustrate (roughly) how much impact do obstacles have on time
used. It may be slooow, but there's no need to re-run it I guess :-)
- best case scenario, everything except player position is a wall
(20x20, 100x100, 600x600)
Ok, good idea. I'll add them.
In other words, the diamond raycasting algorithm's speed can depend
strongly on obstacles player can't see. I've already posted an
explanation in the other thread, but I think you didn't repply. To
make the diamond raycasting run better you'd need to feed it an
optimised obstacle map: without 'deep' walls which are surrounded by
walls from all 8 sides. The result would be the same and it would run
faster. This 'input data optimisation' would only need to take place
once per map generation and once per map change (wands of digging etc)
Indeed, a map filled with walls has terrible performances with my
current implementation. Thanks for the suggestion.
--
jice
.
- References:
- fov algorithms comparison method
- From: jice
- Re: fov algorithms comparison method
- From: b0rsuk
- fov algorithms comparison method
- Prev by Date: Re: fov algorithms comparison method
- Next by Date: Re: fov algorithms comparison method
- Previous by thread: Re: fov algorithms comparison method
- Next by thread: Re: fov algorithms comparison method
- Index(es):
Relevant Pages
|