Commit graph

2352 commits

Author SHA1 Message Date
UnknownShadow200
bb2a55944f Minimise allocation of FastBitmaps. 2015-05-10 07:29:01 +10:00
UnknownShadow200
d8b8e58656 Minimise DrawTextArgs allocations. 2015-05-10 07:17:21 +10:00
UnknownShadow200
05621acd92 Minimise brush allocations. 2015-05-10 06:54:17 +10:00
UnknownShadow200
91f31fd85a Remove debug statement. 2015-05-09 19:09:25 +10:00
UnknownShadow200
0f0b3e57d5 Reduce temporary string allocations. 2015-05-09 18:50:15 +10:00
UnknownShadow200
989870e623 Refactor most 2D operations, further reduce memory allocations. 2015-05-09 18:37:20 +10:00
UnknownShadow200
df8719e4ba Simplify PhysicsTick() 2015-05-09 08:14:31 +10:00
UnknownShadow200
f2f6fb7487 Various simplifications. 2015-05-09 06:22:55 +10:00
UnknownShadow200
bae3b3d32e Various simplifications. 2015-05-08 06:43:50 +10:00
UnknownShadow200
dc2b67d538 Further simplify LocalPlayer. 2015-05-07 18:58:12 +10:00
UnknownShadow200
512657e009 Remove unused ambient lighting code. 2015-05-07 16:27:54 +10:00
UnknownShadow200
49ebc304b9 Simplify mouse picking. 2015-05-06 06:43:38 +10:00
UnknownShadow200
197fb5f7c9 Even more simplification. 2015-05-05 19:07:25 +10:00
UnknownShadow200
4d4dca6de7 More simplification of LocalPlayer. 2015-05-05 18:58:09 +10:00
UnknownShadow200
8376a3b881 More cleanup of LocalPlayer. 2015-05-05 18:49:35 +10:00
UnknownShadow200
010d14c545 Use tSquared for comparisons in entity physics. 2015-05-05 18:44:52 +10:00
UnknownShadow200
808504b382 Simplify FixedBufferStream. 2015-05-05 16:21:19 +10:00
UnknownShadow200
c436c5beea Simplify UpdateState() in LocalPlayer. 2015-05-05 06:45:56 +10:00
UnknownShadow200
25fa7e19bf Add * operator which does component-wise multiplication in OpenTK vectors. 2015-05-04 06:39:13 +10:00
UnknownShadow200
8575c6fb72 Some cleanup in LocalPlayer. 2015-05-04 06:31:43 +10:00
UnknownShadow200
d0fc1fe791 Simplify ^detail.user= parsing. 2015-05-03 06:51:24 +10:00
UnknownShadow200
45d0e53a72 Simplify BlockModel. 2015-05-03 06:40:05 +10:00
UnknownShadow200
2c8535c2ec Fix compliance issue with BlockPermissions (ServerIdentification and SetPermission overriding SetBlockPermissions) 2015-05-02 07:42:17 +10:00
UnknownShadow200
8548159927 Move offseting from SphereInFrustum to ChunkInfo constructor. 2015-05-02 07:08:26 +10:00
UnknownShadow200
3922da3305 Move rendering functions from ChunkMeshBuilder to MapRenderer. 2015-05-02 07:01:34 +10:00
UnknownShadow200
3994af123b Integrate ChunkMeshBuilderTex2Col4 and ChunkMeshBuilder into one class. 2015-05-02 06:53:48 +10:00
UnknownShadow200
afd70c38c2 Remove useless UsesLighting calls. 2015-05-02 06:11:07 +10:00
UnknownShadow200
7a93a8e813 Move some classes into folders. 2015-05-02 06:08:51 +10:00
UnknownShadow200
05e6eef41c Optimise Draw functions in MapRenderer. 2015-05-01 06:43:17 +10:00
UnknownShadow200
f3eeee2d02 Reduce OpenTK even more. 2015-05-01 06:16:58 +10:00
UnknownShadow200
00f20c7fa9 Properly cleanup after disconnected, fix pause screen overriding error screen. 2015-04-30 06:44:21 +10:00
UnknownShadow200
92b8266e29 Simplify view distance cycling. 2015-04-30 06:27:57 +10:00
UnknownShadow200
1b6b9133fe Avoid reallocating vertices every frame in ParticleManager. 2015-04-29 06:37:47 +10:00
UnknownShadow200
fa62592016 Use array cache to avoid reallocating states in Entity.MoveAndWallSlide() 2015-04-29 06:16:37 +10:00
UnknownShadow200
69a166e1f2 Reuse single buffer for writing packets. 2015-04-28 06:41:03 +10:00
UnknownShadow200
60f0086680 Cache WoM env and terrain identifiers. 2015-04-28 06:26:46 +10:00
UnknownShadow200
1a61c78ed6 Reuse 1 PickedPos instance. 2015-04-28 06:19:36 +10:00
UnknownShadow200
7b0aa1482d Cache Action<> constructor calls. 2015-04-27 06:39:58 +10:00
UnknownShadow200
7dcfb4526a Fix display lists. (oops) 2015-04-26 19:53:10 +10:00
UnknownShadow200
8d68ebc3de Fix crashing II. 2015-04-26 09:01:02 +10:00
UnknownShadow200
99bb316001 Fix crashing. 2015-04-26 08:44:23 +10:00
UnknownShadow200
a2e50e914f [broken] Attempting to fix vertices > 65536. 2015-04-26 08:42:33 +10:00
UnknownShadow200
08b7bdb854 Less hardcoding. 2015-04-26 08:26:31 +10:00
UnknownShadow200
a559613198 [broken] Fix indices bug, still doesn't work with > 65536 vertices. 2015-04-26 08:20:25 +10:00
UnknownShadow200
68d1fd4249 [broken] Start work on indexed drawing. 2015-04-26 07:36:33 +10:00
UnknownShadow200
7363211f39 reduce VBO drawing overhead. 2015-04-25 08:23:20 +10:00
UnknownShadow200
aaebb72014 Add indexed drawing functions, make indexed drawing Pos3fTex2fCol4b only. 2015-04-25 08:07:23 +10:00
UnknownShadow200
5dfd6c02fe Reduce duplication of enabling/disabling client state. 2015-04-25 07:57:08 +10:00
UnknownShadow200
d48fe34c21 Remove VertexPos3f. 2015-04-25 07:51:40 +10:00
UnknownShadow200
fad0a17199 Use Vector4 instead of float[] in SetAmbientColour. 2015-04-25 07:46:21 +10:00