Commit Graph

116 Commits

Author SHA1 Message Date
Hayden Kowalchuk
1ac25e4d79 merge: final merge of custom gldc and upstream current 2020-02-18 18:25:04 -05:00
Hayden Kowalchuk
3a4f09bef2 feat: implement proper chanegs from profiling
- math
- inlining
2020-02-18 11:48:37 -05:00
Luke Benstead
b2a2e71795 Much faster lighting implementation 2019-12-27 10:36:30 +00:00
Luke Benstead
a280dac778 Performance improvements 2019-11-30 10:07:41 +00:00
Luke Benstead
cdfb805dd9 Implement a fast path for glDrawElements 2019-11-27 20:08:29 +00:00
Luke Benstead
140eec3d92 glNormalPointer should accept GL_INT_2_10_10_10_REV, not GL_UNSIGNED_INT_2_... 2019-11-27 09:10:10 +00:00
Luke Benstead
11cd54bc0b Add partial support for GL_ARB_vertex_type_2_10_10_10_rev and also GL_NORMALIZE 2019-11-18 17:39:09 +00:00
Hayden Kowalchuk
c222c23ae3 fixes: rollup of minor stuff 2019-10-04 21:32:54 -04:00
Luke Benstead
f59e9bf56e Implement GL_ARB_vertex_array_bgra 2019-09-30 21:59:11 +01:00
Luke Benstead
d7e424a766 Initial implementation of a fast-path (currently some corruption) 2019-09-30 09:14:43 +01:00
Hayden Kowalchuk
f497a24fe9 fix: forgot a free to match a malloc 2019-09-22 19:50:40 -04:00
Luke Benstead
8f84cbb142 Various cleanups from @mrneo 2019-09-22 20:52:58 +01:00
Hayden Kowalchuk
000d6dae7d fix: accept 2019-09-18 20:14:39 -04:00
Luke Benstead
e39632bcc4 Refactor matrix management and clipping 2019-09-14 20:51:47 +01:00
Luke Benstead
e7f2ad7dcc Optimise multitexture submission 2019-09-09 09:36:06 +01:00
Luke Benstead
3af18cb514 Refactor the perspective divide to work with glDepthRange 2019-09-08 17:27:56 +01:00
Luke Benstead
4170655a88 If someone attempts to use lines, just log an error and render nothing (for now) 2019-09-06 09:34:55 +01:00
Luke Benstead
8e59b9adb5 Make sure we clamp floating point colours to avoid overflows 2019-09-04 17:59:57 +01:00
Hayden Kowalchuk
ca8d27a1c2 fix: minor warning round and add burst draw 2019-08-29 09:40:30 -04:00
Hayden Kowalchuk
fca58f1f13 chore: strict aliasing 2 2019-08-17 17:52:16 -04:00
Hayden Kowalchuk
c741d4d622 feat: add fast path for sq_cpy-able verts 2019-08-14 11:57:00 -04:00
Hayden Kowalchuk
0ab6a7f039 feat: glDepthRange and glPolygonOffset 2019-08-13 18:16:38 -04:00
Luke Benstead
b82d28130d Rewrite the lighting code 2019-08-01 20:21:13 +01:00
Hayden Kowalchuk
7936a1fcac feat: minor change 2019-07-03 13:08:07 -04:00
Hayden K
e03a651d10 minor function call reduction. 2019-04-22 19:06:57 -04:00
Hayden K
a812fd572e Change to single file 2019-04-15 14:11:17 -04:00
Luke Benstead
a8d420299c Correctly throw GL_INVALID_VALUE for invalid sizes 2019-04-14 08:51:37 +01:00
Luke Benstead
6cfb4e437c Handle GL_DOUBLE like GL_FLOAT everywhere 2019-04-14 07:17:27 +01:00
Hayden K
4a9336f584 fix all the previous crap.
holy hell
2019-04-08 09:36:33 -04:00
Hayden K
944f911d41 merge latest to latest gldc 2019-04-08 09:12:45 -04:00
Hayden K
275a2aad30 merge 2019-04-08 09:03:05 -04:00
Hayden K
9aee9fe970 feat: add correct mipmapping
* fixes memory layout and handling
* allows paletted mipmapped textures
2019-04-05 22:15:57 -04:00
Luke Benstead
e876dcb14f Massively optimise GL_POLYGON/GL_TRIANGLE_FAN 2019-03-29 11:26:19 +00:00
Luke Benstead
a75ced3fef Speed up immediate mode submission 2019-03-29 11:26:19 +00:00
Luke Benstead
2e33dc0718 Add missing profiler_pop(). Fixes #36 2019-03-29 11:26:19 +00:00
Luke Benstead
41ee67cbf1 Code cleanup 2019-03-28 13:10:53 +00:00
Luke Benstead
e15a47b6fb Use the list stored on the SubmissionTarget 2019-03-28 13:09:36 +00:00
Luke Benstead
3cd15de332 Add additional traces 2019-03-28 13:09:04 +00:00
Luke Benstead
8982444406 Consistently allow > 16384 verts 2019-03-28 13:07:53 +00:00
Luke Benstead
cd04784c33 Fix memory corruption 2019-03-28 13:05:13 +00:00
Luke Benstead
30f8564298 Fix glDrawElements 2019-03-27 09:39:06 +00:00
Luke Benstead
434f316526 Switch pointer comparisons for counters 2019-03-26 09:09:07 +00:00
Luke Benstead
d44a24d339 Add assertions 2019-03-25 19:43:03 +00:00
Luke Benstead
bdeb9cd45a Restore clipping case that apparently can happen after all 2019-03-25 19:04:50 +00:00
Luke Benstead
493592ea30 Tweaks 2019-03-25 16:07:27 +00:00
Luke Benstead
f712f00602 Don't do anything if there are no vertices submitted 2019-03-25 16:06:41 +00:00
Luke Benstead
4355d0f224 Add additional profiler checkpoints 2019-03-25 16:06:28 +00:00
Hayden K
535e361516 Merge branch 'master' of gitlab.com:simulant/GLdc 2019-03-25 09:36:56 -04:00
Luke Benstead
8fd90bd040 Switch back to normal swapping 2019-03-25 12:38:34 +00:00
Luke Benstead
0e71588e6c Try to optimise the quad generation 2019-03-25 10:33:05 +00:00