[Freeciv-Dev] Re: Profiling Civserver again
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Attached is a copy of the mapgen changes I will post shortly
as part of 1.12.0.
The start of mapgen.c has a collection of basic map.h macros
that I was carefully keeping separate during the experimental
stage but which should be merged into map.h at some point.
Feel free to steal whatever ideas or code, but they are probably
pretty close to a lot of what you are talking about.
Note you can use static arrays and waste memory in map.h if you
don't like pre-computing things, or you can even set it up so
the arrays are defined only when you set some specific flag
done in one routine like map.c.
This may make some of the objections to Trent's solution more
palatable. I haven't really scrutinized and tested his current
offering, but I think that if you can make the header a more
obvious documentation of what is being done, then that type of
solution should be considered quite acceptable.
Trent should be made to document it clearly though so mo one
misconstrues what he has done and breaks it :-)
Cheers,
RossW
BTW: should you run the map generation as part of your testing
and have any comments, by all means pass them on.
At 09:37 PM 01/07/26 -0400, Jason Dorje Short wrote:
>Trent Piepho wrote:
>cartesian_adjascent_iterate (which needs to be renamed), adjc_iterate,
>and adjc_dir_iterate could all be mapped to this macro.
>
>Well, that's bad :-( I'll try to buck the trend, and clean up some of
>this code.
>
>Patch will follow...
>
>jason
mappatch.tgz
Description: Binary data
- [Freeciv-Dev] Re: Profiling Civserver again, (continued)
- [Freeciv-Dev] Re: Profiling Civserver again, Paul Zastoupil, 2001/07/27
- [Freeciv-Dev] Re: Profiling Civserver again, Paul Zastoupil, 2001/07/27
- [Freeciv-Dev] Re: Profiling Civserver again, Gaute B Strokkenes, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Thue Janus Kristensen, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Gaute B Strokkenes, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Reinier Post, 2001/07/30
- [Freeciv-Dev] Re: Profiling Civserver again, Trent Piepho, 2001/07/26
- [Freeciv-Dev] Re: Profiling Civserver again, Trent Piepho, 2001/07/26
- [Freeciv-Dev] map wrapping (was: Profiling Civserver again), Mike Kaufman, 2001/07/26
- [Freeciv-Dev] Re: Profiling Civserver again, Jason Dorje Short, 2001/07/26
- [Freeciv-Dev] Re: Profiling Civserver again,
Ross W. Wetmore <=
- [Freeciv-Dev] Re: Profiling Civserver again, Gaute B Strokkenes, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver agai, Vasco Alexandre Da Silva Costa, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Thue Janus Kristensen, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Gaute B Strokkenes, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Ross W. Wetmore, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Ross W. Wetmore, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Jason Dorje Short, 2001/07/30
- [Freeciv-Dev] Re: Profiling Civserver again, Trent Piepho, 2001/07/30
- Message not available
- [Freeciv-Dev] Re: Profiling Civserver again, Ross W. Wetmore, 2001/07/30
- Message not available
- Message not available
- Message not available
- Message not available
- [Freeciv-Dev] Re: Profiling Civserver again, Paul Zastoupil, 2001/07/31
|
|