aboutsummaryrefslogtreecommitdiff
path: root/src/GPU.h
Commit message (Collapse)AuthorAge
* update copyright year and add missing GPL headersRSDuck2021-03-12
|
* separate GPU2D registers and rendererRSDuck2021-02-27
|
* directly set VRAMDirty for VRAM BG/OAM writesRSDuck2021-02-23
|
* Allow for a more modular renderer backends (#990)Wunk2021-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Draft GPU3D renderer modularization * Update sources C++ standard to C++17 The top-level `CMakeLists.txt` is already using the C++17 standard. * Move GLCompositor into class type Some other misc fixes to push towards better modularity * Make renderer-implementation types move-only These types are going to be holding onto handles of GPU-side resources and shouldn't ever be copied around. * Fix OSX: Remove 'register' storage class specifier `register` has been removed in C++17... But this keyword hasn't done anything in years anyways. OSX builds consider this "warning" an error and it stops the whole build. * Add RestartFrame to Renderer3D interface * Move Accelerated property to Renderer3D interface There are points in the code base where we do: `renderer != 0` to know if we are feeding an openGL renderer. Rather than that we can instead just have this be a property of the renderer itself. With this pattern a renderer can just say how it wants its data to come in rather than have everyone know that they're talking to an OpenGL renderer. * Remove Accelerated flag from GPU * Move 2D_Soft interface in separate header Also make the current 2D engine an "owned" unique_ptr. * Update alignment attribute to standard alignas Uses standardized `alignas` rather than compiler-specific attributes. https://en.cppreference.com/w/cpp/language/alignas * Fix Clang: alignas specifier Alignment must be specified before the array to align the entire array. https://en.cppreference.com/w/cpp/language/alignas * Converted Renderer3D Accelerated to variable This flag is checked a lot during scanline rasterization. So rather than having an expensive vtable-lookup call during mainline rendering code, it is now a public constant bool type that is written to only once during Renderer3D initialization.
* prevent race condition around framebuffersRSDuck2021-02-02
|
* fixes to the threadedness of the sw rasteriserRSDuck2021-01-26
| | | | also fix #639 and fix #880
* fix out of bounds readRSDuck2021-01-07
|
* use C++ style structs everywhereRSDuck2021-01-02
|
* add palette and OAM dirty flagRSDuck2020-12-23
| | | | currently not used anywhere
* VRAM dirty tracking fix reset/savestate loadRSDuck2020-12-09
|
* Merge vram dirty trackingRSDuck2020-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit b463a05d4b909372f0cd1ad91caa0c77a25e5901 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 01:55:35 2020 +0100 minor fix commit ce73cebbdf5da243d7ebade82d8799ded9cd6b28 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 00:43:08 2020 +0100 fix dirty flags of BG/OBJ mappings not being reset commit fc5d73a6178e3adc444398bdd23de8314b5ca8f8 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 00:11:13 2020 +0100 use flat vram for gpu2d everywhere commit 34ee9fe2bf04fcfa2a5a1c8d78d70007e606f1a2 Author: RSDuck <rsduck@users.noreply.github.com> Date: Sat Nov 28 19:10:34 2020 +0100 mark VRAM dirty for display capture commit e8778fa2f429c6df0eece19d6a5ee83ae23a0cf4 Author: RSDuck <rsduck@users.noreply.github.com> Date: Sat Nov 28 18:59:31 2020 +0100 use flat VRAM for textures and texpals also skip rendering if nothing changed and a bunch of fixes commit 53f2041e2e1a28b35702a2ed51de885c36689f71 Author: RSDuck <rsduck@users.noreply.github.com> Date: Fri Nov 27 18:29:56 2020 +0100 use vram dirty tracking for extpals also preparations to take this further commit 4cdfa329e95aed26d3b21319c8fd86a04abf20f7 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 16 23:32:22 2020 +0100 VRAM dirty tracking
* make OpenGL renderer a build optionRSDuck2020-10-01
| | | | mostly meant for the Switch port
* * fix build errorArisotura2020-08-24
| | | | | * make betterer polygon splitting an option * add GL_LEQUAL depth test for 'equal' mode, might help
* * rework GPU's settings interface, make it config-agnosticArisotura2020-05-28
| | | | | * make video settings dialog functional, sorta * fix dialogs that were resizable
* get the OpenGL renderer going.Arisotura2020-05-25
| | | | | | sorta. (also make the blackmagic_II branch obsolete in the process)
* update copyright yearsArisotura2020-02-14
|
* fasterer BG/OBJ VRAM readsArisotura2019-06-09
|
* welp.Arisotura2019-05-21
| | | | progress
* BAHAHAHAHAHAHAHAAArisotura2019-05-16
|
* split framebuffer.Arisotura2019-05-12
| | | | | setup doublebuffering inside GPU.cpp. avoid copying a whole framebuffer every frame. better performance at higher res.
* lay base for hi-res renderingArisotura2019-05-03
| | | | IT'S A PILE OF HACKS
* also, update copyright nameArisotura2019-01-22
|
* implement proper support for POWCNT1.StapleButter2018-12-18
| | | | fixes #260
* fix code that would have fucking asplodedStapleButter2018-10-18
|
* fixor copyright years.StapleButter2018-09-15
|
* make it a menu option while we're at itStapleButter2017-09-21
|
* add support for writing to VCount. incl. fucked-up display and altering ↵StapleButter2017-05-10
| | | | framerate accordingly.
* * implement missing graphics (affine BG, rotscaled bitmap sprite)StapleButter2017-03-24
| | | | | | * fix potential crash upon exit * more work on the input config UI * misc fixes
* reorganize repo, move shit aroundStapleButter2017-03-16