KonH
9ed809943d
Just use Dispose methods without arguments (disposing always passed as true)
2021-10-02 22:14:08 +02:00
KonH
8bce6eb3ac
Remove GC.SuppressFinalize calls from classes without destructors
2021-10-02 22:14:08 +02:00
tovl
a428aaa602
Make sure OpenAlSound.Source is never accessed after the source is freed for reuse
2021-10-01 21:15:52 +02:00
tovl
2bc03b4d84
Fix OpenAlSound.Complete being incorrect when OpenAl source is reused.
2021-10-01 21:15:52 +02:00
RoosterDragon
fc5f8fcd31
Fix indent
2021-09-26 15:49:48 +02:00
RoosterDragon
2f955e01f5
Fix style errors
2021-09-26 15:49:48 +02:00
Paul Chote
c958bf9680
Restore threaded renderer.
2021-09-26 15:19:20 +02:00
Paul Chote
4eefa637a3
Remove obsolete threaded renderer workarounds.
2021-09-20 22:33:25 +02:00
Paul Chote
be8e2cf3a4
Move OpenGL context creation to the main thread.
2021-09-20 22:33:25 +02:00
Matthias Mailänder
f08a0b113e
Allow mods to customize application title.
2021-09-19 22:29:50 +02:00
Paul Chote
5eb4c6a0bb
Set _KDE_NET_WM_DESKTOP_FILE x11 window property.
...
This explicitly tells KDE to associate the OpenRA window with
the integrated appimage desktop file, allowing it to use the
correct resolution icon for the task switcher.
2021-08-16 20:18:00 +02:00
abcdefg30
4145723ef0
Remove Sdl2HardwareCursorException
2021-08-14 17:11:34 +01:00
abcdefg30
b8ba1b36fe
Don't throw an exception when creating a hardware cursor fails
2021-08-14 17:11:34 +01:00
teinarss
fba4c5049c
Replace Thread.CurrentThread.ManagedThreadId with Environment.CurrentManagedThreadId
2021-08-10 23:02:18 +02:00
abcdefg30
ba7e1319ac
Remove DisableWindowsRenderThread and use threaded renderering for non windowed mode
2021-08-07 14:49:09 +01:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
Paul Chote
bb15bd20c0
Add support for 16 bit floating point textures.
2021-05-16 14:10:32 +02:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
Paul Chote
a6d393f19b
Fix a crash when using legacy GL.
2021-05-04 09:46:31 +02:00
abcdefg30
3276373745
Pause rendering when the window is minimized
2021-04-26 21:56:20 +01:00
CrazyAlex25
2d05e10819
Modify build properties
2021-04-12 00:44:17 +02:00
teinarss
d60c05eff3
Change to use pattern matching
2021-03-27 17:29:20 +01:00
teinarss
ed43071792
Compile engine and mod dlls as NET5 when not using mono
2021-03-07 16:04:57 +00:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
67754e8693
Add alpha support to SpriteRenderer.
2021-01-06 00:06:51 +01:00
teinarss
5e74e58b22
Add support for dotnet core for Windows
2021-01-01 19:42:01 +01:00
Paul Chote
20fe59e844
Output compiled binaries to ./bin.
2020-11-24 17:53:48 +01:00
Paul Chote
1cc1f93fb0
Rename Platform.GameDir to Platform.EngineDir.
2020-11-24 17:53:48 +01:00
RoosterDragon
e11c8436bd
Misc changes to reduce allocation:
...
- Avoid creating new strings in SpriteRenderer.Flush.
- ProductionQueue.CancelUnbuildableItems can exit early if the queue is empty. It can also use a set of names for quicker lookups.
- OpenGL.CheckGLError avoids a Enum.HasFlag call.
2020-10-17 23:48:48 +02:00
RoosterDragon
b2b639434c
ThreadedGraphicsContext improvements.
...
- VertexBuffer interface redefined to remove an IntPtr overload for SetData. This removes some unsafe code in TerrainSpriteLayer. This also allows the ThreadedVertexBuffer to use a buffer and post these calls, meaning the SetData call can now be non-blocking.
- ThreadedTexture SetData now checks the incoming array size. As the arrays sent here are usually large (megabytes) this allows us to avoid creating temp arrays in the LOH and skip Array.Copy calls on large arrays. This means the call is now blocking more often, but significantly reduces memory churn and GC Gen2 collections.
2020-10-13 15:54:53 +02:00
Paul Chote
597b8b1caa
Hide legacy GL support behind a feature flag.
2020-10-12 12:24:22 +02:00
Paul Chote
2c0d512727
Package and default to GLES via ANGLE on windows.
2020-10-12 12:24:22 +02:00
Paul Chote
fc844cfa6d
Print the GL_RENDERER string to stdout on engine start.
2020-10-12 12:24:22 +02:00
Paul Chote
1ab1c30e39
Remove glGetTexImage/glBindFragDataLocation on GLES.
...
These functions are not available in GLES3.
2020-10-12 12:24:22 +02:00
Paul Chote
e5dc0309f1
Support OPENRA_DISPLAY_SCALE environment variable on Windows.
2020-09-12 00:37:20 +02:00
Brent Gardner
283b330403
Workaround for GLES 2.0 hardware
2020-09-01 18:00:51 +02:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
8d27d22100
Use discard syntax
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
teinarss
19b02875c7
Use Tuple syntax
2020-08-15 10:37:10 +01:00
Stuart McHattie
8c10dc406a
Prevent Mac's Cmd+Q from exiting the game
...
This operation can be devastating if you were trying to assign a control group using Cmd + 1 but accidentally catch the Q key during gameplay.
2020-07-28 23:12:39 +01:00
Paul Chote
ac7eda8ca2
Add support for rendering tinted artwork.
2020-07-13 14:02:02 +02:00
Paul Chote
7ebca36a9c
Disable debug callbacks on Intel HD 4000.
2020-04-25 21:03:43 +02:00
Paul Chote
dac1f270ce
Restore legacy OpenGL 2.1 support.
2020-04-25 21:03:43 +02:00
Paul Chote
839be24053
Replace PreferGLES settings flag with GLProfile enum.
2020-04-25 21:03:43 +02:00
Paul Chote
91c4179f05
Split GLProfile from GLFeatures.
2020-04-25 21:03:43 +02:00
teinarss
e13fd693c3
Add Nuget packages for all dependencies
2020-04-18 11:36:25 -05:00
abcdefg30
3ba86f329f
Remove Game.HasInputFocus
2020-04-17 22:26:03 -05:00
Zimmermann Gyula
8b7e72b95e
Add three additional blending modes.
2020-04-07 22:00:31 +02:00
Paul Chote
1485194ef3
Automatically scale DPI under Linux.
2020-02-16 13:44:50 +01:00