aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move client packet generators to dedicated functions for:Loic Blot2015-03-161-38/+59
| | | | | | | | * TOSERVER_INIT_LEGACY * TOSERVER_DELETEDBLOCKS * TOSERVER_GOTBLOCKS * TOSERVER_REMOVED_SOUNDS Also use a std::vector instead of std::set for TOSERVER_REMOVED_SOUNDS
* Finer progress bar updates when initializing nodesest312015-03-151-4/+43
| | | | The bar is only drawn when the user will notice a change, which prevents time overheads that this commit would cause, resulting from useless draws.
* client.cpp: typo fix and break; fix to make some compilers happyLoic Blot2015-03-131-1/+2
|
* Replace NetworkPacket pointers to referencesLoic Blot2015-03-131-79/+74
|
* Rename some packet and handlers to <packet>_Legacy name for compat layer ↵Loic Blot2015-03-131-2/+2
| | | | between new network changes and old network clients
* Fix memleak pointed by issue #2439.Loic Blot2015-03-081-2/+2
| | | | Also change bzero to memset. bzero doesn't work on windows
* Fix unitialized data when creating TOSERVER_INIT packetLoic Blot2015-03-081-0/+2
|
* For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins2015-03-071-18/+22
| | | | NDEBUG is defined), replace those usages with persistent alternatives
* Clean up database API and save the local map on an intervalShadowNinja2015-03-061-36/+24
|
* Performance improvement: Use std::list instead of std::vector for ↵Loic Blot2015-03-051-2/+2
| | | | | | request_media, Server::getModNames, Environment::m_simple_objects. * Also remove unused Server::m_modspaths
* Remove Queue class which uses std::list and use native std::queueLoic Blot2015-03-051-10/+13
|
* Fix some memory leaks on packet sending.Loic Blot2015-02-211-0/+1
|
* Replace std::list by std::vector into timerUpdate callsLoic Blot2015-02-171-4/+4
|
* Remove old comment from Network Rework Patch 2/4Loic Blot2015-02-171-16/+0
|
* [Patch 2/4] Network rework: packet writing, sending and cleanupsLoic Blot2015-02-161-1399/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" ↵Craig Robbins2015-02-111-1/+2
| | | | | | | setting * Increase performance (client) * Avoid changing a global value to solve a local problem
* Revert "Remove workaround in itemdef.cpp to enable/disable/enable ↵Craig Robbins2015-02-111-2/+1
| | | | | | "enable_shaders" setting" This reverts commit d25ff8fd2592f457b91e8a61240694af3902d23f.
* Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" ↵Craig Robbins2015-02-111-1/+2
| | | | | | | setting * Increase performance (client) * Avoid changing a global value to solve a local problem
* Network Layer 7 rework (Packet handling)Loic Blot2015-02-101-856/+923
| | | | | | | | | | | | | | * Move networkcode to a dedicated directory * Rename clientserver.h to network/networkprotocol.h (Better name) and sanitize some includes * Create object NetworkPacket * It stores command (opcode) and data separated * It also stores peer_id * Data reading can be done by using a streaming interface * Change packet routing analysis * Remove old conditional analysis * Now uses function pointed analysis and add connection state ({Client,Server}::handlers) * Connection state permit to categorize condition to handle before analyze packets * Create a handler for depreciated messages, instead of duplicating code
* Reduce gettext wide/narrow and string/char* conversionsShadowNinja2015-02-051-1/+1
|
* Fix local map saving when joining a local server from the server tabCraig Robbins2015-01-311-30/+42
| | | | | | Disables local map saving for all local server types See: https://github.com/minetest/minetest/issues/2024
* Fix memory leaks due to messed up memory handling for particles as well as ↵sapier2015-01-091-0/+6
| | | | their spawners
* NodeResolver: Perform callback immediately if node registration phase finishedkwolekr2015-01-041-64/+66
| | | | Also add NodeResolver callbacks on the client
* More consistent progress bar from 0-100 on startupsapier2015-01-021-5/+18
|
* Fix missing call to std::ostringstream::strShadowNinja2014-12-121-2/+2
|
* Use std::string::empty() instead of size() where applicableAnton2014-12-121-2/+2
|
* Fix lighting artifacts (Issue #1887).RealBadAngel2014-12-081-9/+4
|
* Performance of main client loop up to 2x faster In places, up to 3 times fasterCraig Robbins2014-12-071-1/+3
| | | | | NOTE 1: This does not mean a 2x increase in framerate. Increase in fps may be up to 1-2fps NOTE 2: This local 'caching' of settings is not optimal and an alternative solution will be worked on after 0.4.11 is released
* Fix node 0,0,0 being highlighted when enable_node_highlighting == falseCraig Robbins2014-12-011-4/+5
| | | | | Without this patch node 0,0,0 is highlighted when enable_node_highligting is false There is a minor lighting issue remaining, however it seems to be related to a different bug (https://github.com/minetest/minetest/issues/1887)
* Implement proper font handlingsapier2014-11-301-3/+3
|
* Fix client "double saving" simple singleplayer local mapsCraig Robbins2014-11-261-1/+3
|
* Add (optional) client-side saving of server map to disksfan52014-11-191-0/+39
|
* Speed up removing a node (less block mesh updates).RealBadAngel2014-11-081-6/+5
|
* Recalculate normals for cached meshes.RealBadAngel2014-10-211-0/+4
| | | | | | Check if mesh is here before adding to meshcollector. Fix deleting the meshes.
* Various uninitialised variable fixesCraig Robbins2014-10-191-0/+1
| | | | | | sky.cpp: m_bgcolor.getAlpha() was being used before initialised mesh related: m_highlight_mesh_color was being used uninitialised
* Add meshnode drawtype.RealBadAngel2014-10-181-1/+1
|
* Simplify player modification checksShadowNinja2014-10-011-3/+1
|
* Split settings into seperate source and header filesShadowNinja2014-09-211-8/+9
| | | | This also cleans up settings a bit
* Allow taking screenshots of formspecs and move message to chatBlockMen2014-09-211-4/+30
|
* Node highlighting.RealBadAngel2014-09-171-4/+14
|
* Move #includes from version.h to version.cppKahrl2014-08-101-2/+2
|
* Add support for Android 2.3+sapier2014-06-291-1/+0
| | | | | | | | | | | | | There have been plenty of ppl involved in creating this version. I don't wanna mention names as I'm sure I'd forget someone so I just tell where help has been done: - The partial android versions done by various ppl - Testing on different android devices - reviewing code (especially the in core changes) - testing controls - reviewing texts A big thank you to everyone helping this to be completed!
* Unite nodes shaders.RealBadAngel2014-06-151-2/+2
| | | | | | | Pass drawtype and material type to shaders. Move shaders generation to startup only. Allow assign shaders per tile. Initial code to support water surface shader.
* Add support for interlaced polarized 3d screenssapier2014-05-181-6/+5
| | | | Add (experimental) support for topbottom as well as sidebyside 3d mode
* Send max number of characters instead of asserting in case of too long chat ↵sapier2014-05-111-2/+4
| | | | messages
* Fix invalid cast fix resulting in chat messages beeing limited to 256 bytessapier2014-05-111-1/+1
|
* Fix heart + bubble bar size on different texture packssapier2014-05-071-0/+9
| | | | | | | Add DPI support for statbar Move heart+bubble bar to Lua HUD Add statbar size (based upon an idea by blue42u) Add support for customizing breath and statbar
* Add hack to avoid 2s startup delay on local gamessapier2014-05-021-13/+16
|
* Add download rate to media progress bar (non http mode only!)sapier2014-04-291-0/+12
| | | | Minor coding style fixes
* Use integers instead of float valuesBlockMen2014-04-121-4/+4
|