Skip to content

Commit

Permalink
ready
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Jul 11, 2016
1 parent 6255de8 commit fdc4915
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
18 changes: 18 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ Done. Can add more callbacks in the future, but this is enough to get the soak t

Updated BUILDING.md with information about reliable messages and new soak test.

Make a preview release

Tested on MacOSX and Linux. Fine.

Tested on windows. Some minor compile errors to fix up.

Hold on test.exe runs really slow in debug, what's going on?

YOJIMBO_ALLOCATE_ARRAY was being used for super-large primitive arrays, and is very slow in debug.

Removed. Replaced with allocator.Allocate( sizeof(T) * count )

Perf is back to normal.

Fixed some issues with some tests not having enough iterations and very rarely failing under packet loss.

Really should add a queue test. I broke it and it was hard to track down (breakage only showed up in stress test with 64 clients)


Sunday July 10, 2016
====================
Expand Down
21 changes: 1 addition & 20 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
DONE

Make a preview release

Tested on MacOSX and Linux. Fine.
DONE

TODO

Tested on windows. Some minor compile errors to fix up.

Hold on test.exe runs really slow in debug, what's going on?

YOJIMBO_ALLOCATE_ARRAY was being used for super-large primitive arrays, and is very slow in debug.

Removed. Replaced with allocator.Allocate( sizeof(T) * count )

Perf is back to normal.

Fixed some issues with some tests not having enough iterations and very rarely failing under packet loss.

Really should add a queue test. I broke it and it was hard to track down (breakage only showed up in stress test with 64 clients)

5 changes: 2 additions & 3 deletions yojimbo_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

namespace yojimbo
{
// todo: wrap message magic with #if YOJIMBO_MESSAGE_MAGIC and have it off by default

const int MessageMagic = 0x12345;

class Message : public Serializable
Expand Down Expand Up @@ -148,15 +150,12 @@ namespace yojimbo

Allocator * m_allocator;

int num_allocated_messages;

int m_numTypes;

public:

MessageFactory( Allocator & allocator, int numTypes )
{
num_allocated_messages = 0;
m_allocator = &allocator;
m_numTypes = numTypes;
}
Expand Down

0 comments on commit fdc4915

Please sign in to comment.