Deve
1d39030f51
Assume that EGL version is always greater than 1.3 because otherwise we won't be able to create GLES 2.0/3.0 context.
2017-04-05 21:49:42 +02:00
Deve
635ea89cd0
Some corrections with egl attribs
2017-04-05 21:49:33 +02:00
Deve
3961a9a3b7
Move EGL context to separate class.
...
It will allow to use it for OpenGL + Wayland.
2017-04-05 21:49:24 +02:00
Deve
9bde708155
Tweak generate assets script to save few Mbytes in the apk.
...
Musics are still not-that-bad while they take less space.
2017-04-02 00:19:13 +02:00
Benau
cfea104a50
Apply camera fix from Stragus
2017-04-01 10:33:48 +08:00
Deve
af98b526d6
Give few more fps in GLES renderer by pre-computing diffuse/specular color
2017-03-28 22:15:33 +02:00
QwertyChouskie
0123228c20
Set menu FPS to 60 ( #2823 )
...
Smoother, see https://github.com/supertuxkart/stk-code/issues/2302 .
2017-03-27 21:56:20 -04:00
hiker
a3544735db
Re-enable caching now that appveyor has downloaded the new dependencies.
2017-03-28 11:00:33 +11:00
hiker
345d9c3ef1
Comment out caching in appveyor config to allow it to download new dependency package.
2017-03-28 10:44:12 +11:00
Deve
0f9151e5d2
Move recording settings to separate group
2017-03-27 00:31:55 +02:00
Deve
075afde636
Fixed kart particles for GLES with disabled advanced lighting
2017-03-27 00:25:39 +02:00
Deve
a7f0d3762c
Some fixes for GLES renderer.
...
- Don't use BGRA format at all. It doesn't work with non-typical cases (i.e. with srgb or compressed textures) and also casues artifacts on some android devices. I kept the extension in central settings, but it probably won't be used.
- Use sRGB texture format when advanced lighting is enabled. This makes it closer to the original OpenGL renderer and also avoids to have even more #ifdef's for sRGB conversions.
- Keep RGBA textures for non-advanced lighting to make it simpler.
Now advanced lighting in GLES looks almost the same as in OpenGL 3.x (without shadows/GI)
2017-03-25 22:23:46 +01:00
Deve
5931e20f8b
Use highp precision qualifier.
...
For OpenGL 3.x renderer it only matters for some buggy drivers (i.e old AMD driver that complains about missing precision qualifier). Based on specification is should have no effect and was added for compatibility with GL ES.
In our case vertex and fragment must have the same precision because we use common header for both shader types and the precision for uniform variables must match.
Also "precision highp float;" is defined by default for both vertex and fragment shaders, so it seems to be more proper.
This will hopefully solve the problem with nvidia driver that tries to use f16vec4 instead of just vec4, see:
https://forum.freegamedev.net/viewtopic.php?f=17&t=7397&sid=06682ddb05ee9fbf48a2984d0bd48d5b
2017-03-24 22:21:09 +01:00
Marianne Gagnon
8461ffcc68
Merge branch 'master' of https://github.com/supertuxkart/stk-code
2017-03-23 21:03:10 -04:00
Marianne Gagnon
b85d84c9dd
Remove outdated Apple-specific code
2017-03-23 21:02:16 -04:00
Benau
372ce6923c
Log in terminal if recording isn't supported
2017-03-24 08:51:42 +08:00
Benau
2660a5b332
Allow message queue to be able to do linebreak
...
Also set "/" and "\" to be breakable
2017-03-23 00:51:50 +08:00
Benau
aecb1a97ce
Update license of img.h as Stragus said in IRC
...
Also remove unneeded file
2017-03-23 00:12:06 +08:00
Benau
81c6735ba2
Fix when getNumProcessors return 0
2017-03-22 20:47:34 +08:00
deve
a3a8289836
Fixed a hang on startup under cygwin
2017-03-22 13:17:04 +01:00
deve
4df773d283
Some fixes in cmake.
...
Note that you need updated dependencies on windows.
2017-03-22 10:24:33 +01:00
Benau
41e66bef37
Allow keeping target name after changing resolution
2017-03-22 12:44:32 +08:00
Benau
9a69859c8f
Fix crash when deleting AVIWriter with file closing
2017-03-22 11:34:42 +08:00
Benau
7e9f723038
Allow recording video with ctrl + printscreen
2017-03-22 10:43:02 +08:00
Benau
4b663a08ce
Use array deallocation
2017-03-22 09:58:22 +08:00
Benau
9034d89a31
Add the missing clear()
2017-03-22 09:53:02 +08:00
Benau
58c665efc6
Merge branch 'avi_writer'
2017-03-22 09:14:35 +08:00
Benau
740bf19446
Fix grammar
2017-03-22 09:08:44 +08:00
Benau
6ef70e2e7c
Use message queue to inform users about recording status
2017-03-22 09:02:21 +08:00
Benau
2b9a84253a
Make MessageQueue thread-safe
2017-03-22 08:40:58 +08:00
Benau
668b28f632
Allow to config whether to limit game framerate with recordings
2017-03-22 07:43:00 +08:00
Benau
196b2b722c
Fix mac build
2017-03-22 07:42:48 +08:00
Deve
4ef8ec3af2
Fixed a warning in shaders compilation
2017-03-21 19:42:53 +01:00
Deve
583b858860
Handle #stk_include in better way.
...
It allows to use it recursively.
2017-03-21 18:41:18 +01:00
Benau
f58cf2d9cc
Better handling with thread
2017-03-22 00:39:24 +08:00
Benau
3ed52e26d0
Call createFile only in AVIWriter thread
2017-03-21 16:16:10 +08:00
Benau
e2482e602c
Don't use irrlicht image
2017-03-21 14:35:20 +08:00
Benau
449d63c0d8
Save record option in user config
2017-03-21 13:08:08 +08:00
Benau
547d28a9e4
Use jpeg-turbo library in msvc
2017-03-21 09:17:39 +08:00
samuncle
8265bb14f3
Revert, the high frequency noise has it's own branch
2017-03-20 15:15:51 -05:00
Sam
16c0736f8b
Add base for detail map with splatting
2017-03-20 20:49:54 +01:00
Benau
3087a7c856
Don't call malloc for each frame
2017-03-21 01:09:20 +08:00
Benau
78dcabb143
Try to maintain a better synchronization with game framerate
2017-03-20 16:16:26 +08:00
Deve
2a64ce94c8
Some fixes for scale rtts.
...
- Don't force using rtts when advanced lighting is disabled because it actually makes the game slower
- Keep the minimap and kart selection screen in high quality
2017-03-18 22:26:35 +01:00
Benau
88cbcd202c
Don't enable AVIWriter if PBO is not usable
2017-03-18 16:06:38 +08:00
Benau
8259026ac1
Make AVIWriter threaded and get pixel with 3 async PBOs
...
Also try to record at a fixed 24fps
2017-03-18 15:50:18 +08:00
Benau
21cbcd9185
Load speedmeter texture before rendering the first frame
2017-03-18 08:30:50 +08:00
Benau
d3d7c95b4d
Fix msvc build
2017-03-17 17:19:46 +08:00
Benau
65da13fc52
Merge remote-tracking branch 'origin/threaded_tex_loader' into avi_writer
2017-03-17 16:31:32 +08:00
Benau
09e2f96ba8
Remove libpng's png_set_gamma
...
Stragus suggested:
It will degrade quality by converting from true sRGB to ^2.2 and
then rounding the values back on 8 bits
2017-03-17 13:19:56 +08:00