Thomas Moenicke
b64ed75444
[build] Adding a build flag to build without GL if needed ( #16120 )
...
* [build] Adding a build flag to build without GL if needed
* [build] Moving custom layer to mbgl/gl
2020-02-03 19:10:57 +02:00
Alexander Shalamov
00d133239e
[core] Blacklist VAO extension for Adreno (TM) 4xx GPUs
...
Blacklist in order to avoid crashes in a driver.
2019-12-02 11:03:16 +02:00
Mikko Pulkki
fb062bb23e
[render-test] Add resource usage tracking to gfx context
2019-10-30 14:32:27 +02:00
Mikko Pulkki
0ca96fd8a4
[render-test] Implement fps benchmarking tests ( #15803 )
2019-10-22 12:13:55 +03:00
Thiago Marcos P. Santos
c7bbd5bbef
[core] Fix performance-move-const-arg
2019-09-25 18:59:07 +03:00
Konstantin Käfer
ce91218b42
[core] don't call glFlush on every frame
2019-06-12 18:08:18 +02:00
Aleksandar Stojiljkovic
d7fa18efa6
[core] Remove unused OffscreenTexture variant with depth render target
2019-06-11 11:39:51 +03:00
Konstantin Käfer
7f9274035b
[core] refactor program object creation
2019-05-28 16:11:05 +02:00
Thiago Marcos P. Santos
c2f974f2a5
[core] Remove binary shader support
...
The implementation is buggy and not worth maintaining anymore
because performance benefits are not substantial or sometimes
worse. Also, removing it saves about 150 ~ 180 KB in binary size.
Below timings are averages of minimum 5 runs.
```
Device Init launch Average relaunch
s10 1129.8 ms 700 ms
s10 - binary 1346.75 ms 694 ms
Pixel 1692 ms 723 ms
Pixel - binary 1883 ms 1039 ms
Kazam 17948 ms 1339 ms
Kazam - binary 19157 ms 1564 ms
Wiko 2060 ms 1278 ms
Wiko - binary 3876 ms 1136 ms
```
Fixes #14294
2019-05-21 15:05:37 +03:00
Aleksandar Stojiljkovic
2a3a1c7bb3
[core] Remove re-linking programs approach ( #14482 )
...
Remove re-linking programs as redundant.
It costs (cheaper to link once than twice) and (subjective) is not that common GL API
usage pattern, although perfectly legal and permitted.
Initial idea, behind the removed code, was to enable work on optimization
that would reduce number of attrib setup calls in case when VAO is not
available (as described in #9433 ).
As such optimization is not implemented, and it is arguable if it makes sense
to do it now, we can remove re-linking.
Related to closed PRs #9433 and PR #11583 .
I have [measured the time spent just on relinking](https://gist.github.com/astojilj/29bd5a5c5dc0b2d9f29ecb660da07fbf ) using release build on iPhone SE (A9, same as iPhone 6S):
- 1st run after reboot or installation
Total 37.14ms, average per program:1.86ms
- reopening
Total: 2.47ms, average per program: 0.12ms
This time we save using the patch here.
2019-05-20 16:17:19 +03:00
Konstantin Käfer
3a6ff7710f
[core] add gfx::UploadPass, split startRender into prepare and upload
2019-05-15 11:57:43 -07:00
Konstantin Käfer
179c5fe83b
[core] add gfx::CommandEncoder::present()
2019-05-15 11:57:43 -07:00
Konstantin Käfer
08163713e2
[core] change approach to stencil clipping to (almost) match JS
2019-04-29 11:37:39 +02:00
Konstantin Käfer
e95bf4dd9b
[ios] run glFlush when reducing memory and don't reduce memory while in background ( #14383 )
2019-04-11 09:57:35 -04:00
Konstantin Käfer
d7aaf83421
[core] introduce gfx::RenderPass
2019-04-05 11:49:17 +02:00
Konstantin Käfer
b1a2513b61
[core] test OffscreenTexture renderability before using them
2019-04-05 11:49:17 +02:00
Konstantin Käfer
7081d5e154
[core] move depth/stencil buffer debug viz to gfx::Context
2019-04-05 11:49:17 +02:00
Konstantin Käfer
1d58850d0c
[core] remove Renderer::flush
2019-04-05 11:49:17 +02:00
Konstantin Käfer
5cc3d7a733
[core] move GLContextMode to RendererBackend
2019-04-05 11:49:17 +02:00
Konstantin Käfer
66c020034e
[core] refactor RendererBackend
2019-04-05 11:49:17 +02:00
Konstantin Käfer
865f8a6c03
[core] add gfx::Renderable and gfx::OffscreenTexture
2019-04-05 11:49:17 +02:00
Konstantin Käfer
ebd8508032
[core] add getResource template to gfx::*Resource classes
2019-04-05 11:49:17 +02:00
Konstantin Käfer
c02010ab6c
[core] move debug groups to gfx::CommandEncoder
2019-04-05 11:49:17 +02:00
Konstantin Käfer
543b678982
[core] introduce CommandEncoder object
2019-04-05 11:49:17 +02:00
Konstantin Käfer
5270b2ffbd
[core] move supportsHalfFloatTextures to gfx::Context
2019-04-05 11:49:17 +02:00
Konstantin Käfer
394e2aa717
[core] prefer static_cast for casts to derived classes
2019-04-05 11:49:17 +02:00
Konstantin Käfer
be3b5917c1
[core] add generic base class for renderbuffers
2019-04-05 11:49:17 +02:00
Konstantin Käfer
839f4687aa
[core] gl::RenderbufferType -> gfx::RenderbufferPixelType
2019-04-05 11:49:17 +02:00
Ansis Brammanis
2455275bf4
add onStyleImageMissing to allow dynamically loaded or generated images ( #14253 )
...
Also make `Style#updateImage(...)` much faster when the image doesn't change size. This can be useful for asynchronously generating images.
2019-04-02 12:57:45 -04:00
Thiago Marcos P. Santos
805b140245
[core] Disable binary programs until we fix #14294
2019-04-02 19:30:03 +03:00
Thiago Marcos P. Santos
3122df7e50
[core] Expose a way of flushing the graphics pipeline
...
Useful for apps before going to background that are
restricted by the OS of performing any operation.
2019-03-20 18:47:15 +02:00
Konstantin Käfer
f86cc81680
[core] move cleanup to gfx::Context
2019-03-20 15:40:47 +01:00
Konstantin Käfer
1e30fdac36
[core] move ProgramMap to within the gl::Program object
2019-03-20 15:40:47 +01:00
Konstantin Käfer
53ab65d811
[core] use constexpr string concatenation for uniform/attribute names
2019-03-20 15:40:47 +01:00
Konstantin Käfer
0ad2375e10
[core] remove a_/u_ prefix from attribute/uniform types
2019-03-20 15:40:47 +01:00
Konstantin Käfer
9ee1de575a
[core] expose vertex binding count in gfx::Context
2019-03-20 15:40:47 +01:00
Konstantin Käfer
52cf9a1af3
[core] remove gl/context.hpp from more files, cast where necessary
2019-03-20 15:40:47 +01:00
Konstantin Käfer
c8cfdb1ced
Merge pull request #14126 from mapbox/gfx-refactor-4
...
Graphics refactor #4
2019-03-15 20:31:12 +01:00
Konstantin Käfer
e27f330629
[core] add texture bindings to draw call instead of Context member fn
2019-03-12 11:03:54 +01:00
Konstantin Käfer
cb64c380fb
[core] add texture bindings to draw call invocations
2019-03-12 11:03:54 +01:00
Konstantin Käfer
a7f151ab48
[core] move Texture to the gfx namespace
2019-03-12 11:03:54 +01:00
Konstantin Käfer
2a25270298
[core] move Texture related enums to gfx namespace
2019-03-12 11:03:54 +01:00
Konstantin Käfer
8a8291d8f4
[core] introduce gfx::Context and move Buffer creation/update methods to it
2019-03-06 16:12:51 +01:00
Konstantin Käfer
ec42b2a5a4
[core] move BufferUsage enum to gfx namespace
2019-03-06 16:12:51 +01:00
Konstantin Käfer
458bb65510
[core] rename gl/*_buffer.hpp to gl/*_buffer_resource.hpp
2019-03-06 16:12:51 +01:00
Konstantin Käfer
3a57aa65d7
[core] move VertexBuffer<> to gfx namespace
2019-03-06 16:12:51 +01:00
Konstantin Käfer
4737a45383
[core] move IndexBuffer to gfx namespace
2019-03-06 16:12:51 +01:00
Konstantin Käfer
f13c2b86e4
[core] unify *Buffer/Vector naming
2019-03-06 16:12:51 +01:00
Konstantin Käfer
2f646af255
[core] make vertex descriptors constexpr
2019-03-06 16:12:51 +01:00
Konstantin Käfer
d5816b6db2
[core] remove unused template parameter from gl::IndexBuffer
2019-03-06 16:12:51 +01:00