93 Commits

Author SHA1 Message Date
UnknownShadow200
9dd16baf47 ChunkPartInfo is now 12 bytes less in size 2017-09-13 14:20:11 +10:00
UnknownShadow200
ffcd5d2d58 Optimise Entity.TransformMatrix, prefer 32 to 64 bit usages in places, start work on parsing C string to 32 bit number. 2017-08-23 12:43:36 +10:00
UnknownShadow200
3a7cc8924b Implement mipmaps with direct3d9 backend too. Fixes #214. 2017-08-22 23:47:00 +10:00
UnknownShadow200
c23ba90c1f Make BlockInfo class static and break all plugins in the process. 2017-08-14 09:33:21 +10:00
UnknownShadow200
bee207138c Only pick a block if the intersection point is exactly within reach distance. Should address #461. 2017-08-02 20:06:01 +10:00
UnknownShadow200
aa1ddc7b25 Store global 1D part counts separately for normal and translucent parts. allows globally skipping 1D batches with no translucent parts, for faster performance 2017-06-08 12:19:08 +10:00
UnknownShadow200
73fb950f55 Fix normal C# client always crashing without a stacktrace from recent commit, I'm a stupid idiot. 2017-05-25 15:36:35 +10:00
UnknownShadow200
fd4e3d64af Mostly port MapRenderer to C. 2017-05-25 15:35:30 +10:00
UnknownShadow200
c403e3765b Get rid of code duplication in MapRenderer 2017-05-25 14:46:27 +10:00
UnknownShadow200
747e3183d6 Modularise lighting more 2017-04-22 15:03:06 +10:00
UnknownShadow200
f9c825f78e External code can refresh particular chunks now. 2017-04-22 13:49:15 +10:00
UnknownShadow200
005d0cebe2 For the 0-1 people who bother, make 12 bit block ids as easy as a compile time switch. 2017-02-19 22:29:07 +11:00
UnknownShadow200
b6df7d9732 Don't pointlessly recreate all air chunks 2017-02-19 11:40:35 +11:00
UnknownShadow200
3fad8450b7 Prefer stale to deleted chunks 2017-02-19 11:10:24 +11:00
UnknownShadow200
c92ebcac6c Use BlockID typedef instead of hardcoding byte everywhere.
In the 0.00001% chance someone changes blockid to be 16 bits
2017-02-16 16:31:17 +11:00
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
e33d39685c Style: Make more code available to external plugins. 2016-12-03 19:26:38 +11:00
UnknownShadow200
4d1ef1a65b more work on lighting abstraction 2016-11-29 21:25:39 +11:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
UnknownShadow200
2fa379746a Style: Finish simplifying BlockInfo 2016-10-29 13:49:33 +11:00
UnknownShadow200
6abc7d1660 Client: Fix issue with backface of water not being drawn when below water horizon outside the map, closes #268. 2016-10-19 17:06:50 +11:00
UnknownShadow200
2452cc93a7 Style: Use gfx consistently everywhere, instead of mixing api and graphics. 2016-10-12 12:25:12 +11:00
UnknownShadow200
4281dead19 Allow switching between normal / smooth lighting mesh building at runtime. 2016-07-09 16:10:32 +10:00
UnknownShadow200
d2c6820dec Do much more optimised chunk rendering, this can double FPS on very large worlds (512^3 or 1024^3) which have many empty chunks. 2016-06-28 13:29:42 +10:00
UnknownShadow200
fc688b53d2 Vertex counter now only counts vertices actually submitted to the GPU for drawing. (Thanks Empy) 2016-06-15 21:39:51 +10:00
UnknownShadow200
1158193ad1 Fix selected block outline not showing when looking through map edge water. 2016-06-08 15:04:17 +10:00
UnknownShadow200
d06110f571 Make selected block lines smaller (Thanks Coliop). 2016-06-08 13:54:46 +10:00
UnknownShadow200
fa36e7f8af Slightly better rendering of weather, still needs to fix some special cases though. 2016-05-29 22:26:50 +10:00
UnknownShadow200
c4f1f69cbd Use a single tab list code base for both CPE ExtPlayerList and original tab list behaviour. 2016-05-29 21:37:38 +10:00
UnknownShadow200
109e5fc1a8 Render rain/snow in correct order. 2016-05-13 19:49:39 +10:00
UnknownShadow200
0ab4014001 Fix non-water translucent back faces disappearing when not in same chunk as the player even though the player may be able to see its back faces. 2016-05-11 17:50:32 +10:00
UnknownShadow200
442d72bd6b More usage of IGameComponent 2016-05-08 18:53:52 +10:00
UnknownShadow200
0c84116f93 Do not reallocate ChunkInfo on Refresh(), reduces temp memory allocations. 2016-05-01 22:01:11 +10:00
UnknownShadow200
c80781045d Skip drawing sprite groups we can never see. 2016-04-28 09:09:22 +10:00
UnknownShadow200
781692963b Fix issue when a chunk has exactly 65536 sprite vertices. 2016-04-28 08:37:13 +10:00
UnknownShadow200
02d861b275 Quick fix for commit 8956cc5abdd346b6f3f71549abe37ff3f3a63689 2016-04-20 11:40:07 +10:00
UnknownShadow200
a8cd79abcd Fix client crashing after clicking 'chat scale', then 'use font', then 'chat scale' again. 2016-04-20 09:48:23 +10:00
UnknownShadow200
8956cc5abd Modularise MapRenderer class. 2016-04-20 08:41:22 +10:00
UnknownShadow200
10ca60c2d6 Fix rare crash when terrain.png changes to a different size partway through the map loading. 2016-04-20 08:16:05 +10:00
UnknownShadow200
b1a6e87d92 Occlusion code does not work currently and was disabled, therefore there is no need to include it in the output binary. 2016-04-20 07:37:30 +10:00
UnknownShadow200
93c35029a3 Make zoom fov only active when key binding is held down, to match optifine. (Thanks 123DontMessWitMe) 2016-04-14 07:38:25 +10:00
UnknownShadow200
4dca01a619 Optimise map rendering - we keep track of which 1D texture atlases actually have any chunks in the world using them at all (in addition to the test on visible chunks), thus we can skip entire rows. 2016-04-13 17:40:09 +10:00
UnknownShadow200
221dff8081 Quick fix for some maps not loading in singleplayer. 2016-04-05 22:06:57 +10:00
UnknownShadow200
d012d7dd0a Only refresh map borders when sides level changes, only refresh entire map when the texture pack is different to the last one. (Thanks FabTheZen) 2016-04-03 08:31:11 +10:00
UnknownShadow200
2a67f8f698 Remove Pack=1 arguments which were causing runtime errors on specific mono versions, partially addresses #93. (Thanks Jjp137) 2016-03-30 15:59:55 +11:00
UnknownShadow200
7a2e5d6049 Organise most things into namespaces. 2016-03-27 09:33:51 +11:00
UnknownShadow200
a78205c45a Add copyright notices to every source file. 2016-03-26 13:51:42 +11:00
UnknownShadow200
ddc38805b0 Implement sprite mirroring, closes #56. 2016-02-29 18:11:37 +11:00
UnknownShadow200
b66fdffae9 Fix entity shadows definitely, fix launcher not proper updating in some circumstances. (Thanks FabTheZen) 2016-02-20 00:19:22 +11:00
UnknownShadow200
357b20619a Fix update script on linux not restarting launcher. 2016-02-14 10:26:39 +11:00