[Ohrrpgce] SVN: teeemcee/8846 vectors: add an argument to v_new to reserve extra space, and fix a majo
subversion at HamsterRepublic.com
subversion at HamsterRepublic.com
Fri Jun 9 09:48:56 PDT 2017
teeemcee
2017-06-09 09:48:56 -0700 (Fri, 09 Jun 2017)
436
vectors: add an argument to v_new to reserve extra space, and fix a major bug in mem_resize I caused recently
Surprisingly, the bug, which meant vectors were nearly always in an
inconsistent state, didn't cause any problems until I added this extra arg.
I was expecting that reserving extra space for the openlist while pathfinding
would speed things up, but in my benchmark with heaps of stuck NPCs (length
0 open lists), it doesn't.
---
U wip/array.c
U wip/array.h
U wip/os_unix.c
U wip/vector.bi
U wip/vectortest.bas
More information about the Ohrrpgce
mailing list