Skip to content
Snippets Groups Projects
  1. Feb 17, 2015
  2. Feb 16, 2015
    • Yaman's avatar
      Add player direction to on-screen debug text · 98d80e20
      Yaman authored
      (PR Modified slightly)
      98d80e20
    • Loïc Blot's avatar
      Performance Improvement: Use a cache which caches result for getFacePositions. · 7c8793cb
      Loïc Blot authored
      This greatly reduce the number of std::list generated by caching the result, which is always constant for each radius selected.
      In the callgrind map, you will see original:
        * 3.3M calls to std::list for 9700 calls to getFacePositions
      In the modified version, you will see:
        * 3.3K calls to std::list for 6900 call to getFacePositions
      Callgrind map is here: #2321
      
      it's a huge performance improvement to l_find_node_near
      7c8793cb
    • Loïc Blot's avatar
      [Patch 2/4] Network rework: packet writing, sending and cleanups · ed04e8e9
      Loïc Blot authored
      NetworkPacket.cpp:
      * Remove some deprecated functions, we must use streaming interface
      * m_data converted from u8* to std::vector<u8>
      * Add an exporter to forge packet to Connection object
      * implement operator << std::wstring. n
      * implement operator << std::string
      * dynamic resize when write packet content.
      * fix string writing and performances.
      * create ServerCommandFactory, used by client to get useful informations about packet processing (sending).
        * Reliability
        * Transmit channel
      * Implement putRawString for some ugly char (_INIT packet), and use it.
      * Many packet read and write migrated
      * Implement oldForgePacket to interface writing with current connection
      * fix U8/char/bool writing
      * fix string writing and performances.
      * add some missing functions
      * Use v3s16 read instead of reading x,y,z separately
      * Add irr::video::SColor support into packets
      * Add some missing handlers
      * Add a template function to increase offset
      * Throw a serialization error on packet reading (must be improved)
      
      PacketFactories:
      * Create ServerCommandFactory, used by client to get useful informations about packet processing (sending).
      * Create ClientCommandFactory, used by server to get useful informations about packet processing (sending).
      
      Client.cpp:
      * implement NetworkPacket ::Send interface.
      * Move packet handlers to a dedicated file
      * Remove Client::Send(SharedBuffer)
      
      Server.cpp:
      * implement NetworkPacket ::Send interface.
      * Rewrite all packets using NetworkPacket
      * Move packet handlers to a dedicated file
      * Remove Server::Send(SharedBuffer)
      
      ClientIface.cpp:
      * Remove sendToAll(SharedBuffer<u8>)
      
      Connection.hpp rework:
      * Remove duplicate include
      * Remove duplicate negation
      * Remove a useless variable
      * Improve code performance by using a m_peers_list instead of scanning m_peers map
      * Remove Connection::Send(SharedBuffer)
      * Fix useafterfree into NetworkPacket Sending
      * Remove unused Connection::sendToAll
      
      Test.cpp:
      * Remove dead code
      * Update tests to use NetworkPackets
      
      Misc:
      * add new wrappers to Send packets in client, using NetworkPacket
      * Add NetworkPacket methods for Connection
      * coding style fix
      * dead code since changes cleanup
      * Use v3s16 read instead of reading x,y,z separately in some packets
      * Use different files to handle packets received by client and server
      * Cleanup: Remove useless includes
      
      ok @Zeno-
      Tested by @Zeno- @VanessaE and @nerzhul on running servers
      ed04e8e9
  3. Feb 15, 2015
  4. Feb 14, 2015
  5. Feb 13, 2015
  6. Feb 12, 2015
  7. Feb 11, 2015
  8. Feb 10, 2015
  9. Feb 08, 2015
  10. Feb 07, 2015
  11. Feb 06, 2015
  12. Feb 05, 2015
Loading