Skip to content

Commit

Permalink
bruh.
Browse files Browse the repository at this point in the history
GPU caching is no longer forced on
unfinished optimizations
  • Loading branch information
JordanSantiagoYT committed Dec 6, 2023
1 parent 3ce4353 commit 26dfd94
Show file tree
Hide file tree
Showing 3 changed files with 367 additions and 529 deletions.
4 changes: 2 additions & 2 deletions source/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class Paths
*/
//Loads images.
public static var currentTrackedAssets:Map<String, FlxGraphic> = [];
static public function image(key:String, ?library:String = null, ?allowGPU:Bool = true):FlxGraphic
static public function image(key:String, ?library:String = null):FlxGraphic
{
var bitmap:BitmapData = null;
var file:String = null;
Expand Down Expand Up @@ -341,7 +341,7 @@ class Paths
if (bitmap != null)
{
localTrackedAssets.push(file);
if (allowGPU && ClientPrefs.cacheOnGPU)
if (ClientPrefs.cacheOnGPU)
{
var texture:RectangleTexture = FlxG.stage.context3D.createRectangleTexture(bitmap.width, bitmap.height, BGRA, true);
texture.uploadFromBitmapData(bitmap);
Expand Down
Loading

0 comments on commit 26dfd94

Please sign in to comment.