RoosterDragon
c313c52e96
Avoid a globally shared SheetBuilder in SpriteFont.
...
A globally shared sheet builder leaks memory and resources between mod switches. Instead, we create and inject the sheet builder during mod startup to ensure we still share the builder across all fonts, but can reclaim it when the mod is unloaded.
2015-01-19 21:04:17 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
RoosterDragon
2c34358372
Avoid initialization of graphical elements for a server.
...
Avoid allocating memory and resources for graphical elements that will never be drawn when starting a dedicated server. This reduces the server memory footprint by approx 17 MiB.
2015-01-04 19:22:41 +00:00
Hellhake
5a97a4b63b
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:11:01 +01:00
RoosterDragon
9cbac2d5e1
Clean up style of files affected by the last commit.
2014-12-22 17:34:02 +00:00
RoosterDragon
f0f02dff5c
Dispose of graphics resources deterministically.
...
Textures, FrameBuffers and VertexBuffers allocated by the Sdl2 Renderer were only being released via finalizers. This could lead to OpenGL out of memory errors since resources may not be cleaned up in a timely manner. To avoid this, IDisposable has been implemented and transitively applied to classes that use these resources.
As a side-effect some static state is no longer static, particularly in Renderer, in order to facilitate this change and just for nicer design in general.
Also dispose some bitmaps.
2014-12-22 17:34:01 +00:00
Matthias Mailänder
cf43581bac
measure sprite font performance
2014-11-01 16:13:54 +01:00
Paul Chote
4f44cc1969
Load assets using absolute paths. Fixes #6717 .
2014-10-11 11:02:30 +13:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
Gordon Martin
89c9499909
Removing requirement to restart game after applying changes to mouse focus option. The setting now defaults to 'false' as it is likely to be disruptive to players who are used to the usual behaviour in windowed mode.
2014-06-12 22:57:25 +01:00
RoosterDragon
a2ed4fd5f9
Avoid redundantly setting viewport parameters in BeginFrame.
...
- Cache the old resolution, scroll and zoom in BeginFrame, and don't bother updating the viewport parameters again until they change.
- Pass around scroll as an int2 to reduce the number of back-and-forth casts.
2014-06-10 17:06:25 +01:00
Paul Chote
401e7cf1b2
Remove an outdated hack from Renderer.
2014-05-03 11:40:55 +12:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Matthias Mailänder
eed38b3da4
fallback to defaults when something goes wrong
2013-11-09 11:06:16 +01:00
Paul Chote
94554d7678
Support nested scissor rectangles.
2013-10-25 08:31:34 +13:00
Paul Chote
b7123cda7d
Route screen size queries via Game.Renderer.
2013-10-05 21:01:21 +13:00
Paul Chote
4c22193446
Remove obsolete Stencil Buffer functions.
2013-06-15 19:31:52 +12:00
Paul Chote
c5337cdcf3
Reimplement voxel rendering with a FBO.
2013-06-15 19:31:52 +12:00
Paul Chote
7d09e78655
Add WorldRgbaSpriteRenderer.
2013-06-15 19:16:08 +12:00
Paul Chote
a00696ec3b
Add core voxel rendering code.
2013-06-04 20:40:24 +12:00
Paul Chote
f6264eeba4
Expose stencil buffer to render code.
...
The intention is to provide a layer for tracking shadow
rendering, so a single bit is sufficient for now.
2013-06-04 20:25:21 +12:00
Paul Chote
1b34c7d6b9
Expose depth buffer to render code.
2013-06-04 20:25:21 +12:00
Matthias Mailänder
acc8cd1e5e
fixes #2885 forgot to enable the cursor palette before drawing
...
split HardwarePalette.Update into two functions, closes #2847
2013-04-06 08:44:32 +02:00
Matthias Mailänder
6c6f5601d8
make PaletteTexture private and only use it for sprite renders
2013-04-06 08:44:32 +02:00
Matthias Mailänder
1a6a7da9c1
apply recent refactoring to quad renderer
2013-03-10 07:47:00 +01:00
Matthias Mailänder
7d0de5645f
Added QuadRenderer to render shaded/colored quads. Added DebugOverlay to World to show A* bidi search cost per cell.
2013-03-10 07:32:35 +01:00
Paul Chote
8a53819f50
Redirect IShader calls via respective *Renderers.
2013-03-08 18:21:35 +13:00
Paul Chote
786c3b1f1a
Rename uniform setters to avoid future ambiguity.
2013-03-04 19:06:42 +13:00
Paul Chote
a166815348
Remove duplication between world/chrome shaders.
2013-02-23 09:53:46 +13:00
Paul Chote
35a149ea87
Apply consistent formatting to Renderer (no code changes).
2013-02-23 09:46:16 +13:00
Igor Popov
bf73cdbd01
basic dedicated server support
2012-09-23 17:20:45 +12:00
alzeih
1b0724719d
Make LineRenderer understand Zoom internally
2011-12-13 23:58:39 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
cc716ab8c7
#1106 fixed -- mac-specific hack should only be applied on a mac.
2011-08-15 14:15:55 +12:00
Chris Forbes
a79cc0a0e0
drop unused parameter on IGraphicsDevice.Clear()
2011-08-09 08:51:36 +12:00
Paul Chote
6183621a72
Scale line-width to match zoom.
2011-07-25 22:23:17 +12:00
Paul Chote
fc783ddf80
Support custom zoom levels
2011-07-25 22:23:17 +12:00
Paul Chote
926b396605
Fix bogus naming of Shaders/Renderers. Split LineRenderer into world and chrome variants.
2011-07-25 22:23:16 +12:00
Chris Forbes
b0ccc58516
remove unused vsync parameter from renderers
2011-07-17 17:55:52 +12:00
Paul Chote
f9b1c4fcc3
Work around a non-interactable window bug exposed by earlier graphics refactoring.
2011-07-15 23:57:29 +12:00
Chris Forbes
6f477a2c14
fix broken detection of desktop resolution on linux
2011-07-14 20:29:10 +12:00
Chris Forbes
b06647a079
reduce noise in Renderer
2011-07-14 20:29:10 +12:00
Chris Forbes
a4648cfbcc
move SheetSize to Graphics section of settings
2011-07-14 20:29:03 +12:00
Chris Forbes
dcd9627c22
fixed #989 : don't do renderer setup in a reflected call.
2011-07-14 20:29:03 +12:00
Chris Forbes
a07e151ab5
drop bogus comment in renderer
2011-07-14 20:29:03 +12:00
Chris Forbes
5ecc1ebefc
split IGraphicsDevice.{Present,PumpInput}
2011-05-22 22:10:48 +12:00
Chris Forbes
90cea9f73d
expose temp VBO tuning parameters in settings
2011-05-22 20:41:31 +12:00
Chris Forbes
9434dd993a
slight cleanup in Renderer
2011-05-22 20:38:57 +12:00
Chris Forbes
75588b050e
improve error message in CreateDevice
2011-05-22 20:38:56 +12:00