Skip to content

Instantly share code, notes, and snippets.

@JDLogic
JDLogic / updateMappings.md
Last active November 25, 2022 14:17
How to use ForgeGradle's updateMappings task

What is it

This task will migrate (remap) the project's source files to a new mapping version.

Warning:

Running this task with edit your project's source files. It does NOT make a backup. It is highly recommened that you commit any pending changes before doing this. (If you are not using version control, you should be.)

Before running the command

Source must be compilable

This process uses Srg2Source to remap the project's source files. Therefore, your project must be compilable for this process to work.

@dondragmer
dondragmer / CuteSort.hlsl
Created December 5, 2020 00:11
A very fast GPU sort for sorting values within a wavefront
Buffer<uint> Input;
RWBuffer<uint> Output;
//returns the index that this value should be moved to to sort the array
uint CuteSort(uint value, uint laneIndex)
{
uint smallerValuesMask = 0;
uint equalValuesMask = ~0;
//don't need to test every bit if your value is constrained to a smaller range
@Chillu1
Chillu1 / FullscreenGameView.cs
Last active June 14, 2024 16:12
FullscreenGameView utility, for automatic fullscreen on play with toggle option (Game view fullscreen in editor)
/*
MIT License
Copyright (c) 2021 Chillu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is

During the past days, this great article by Sam Pruden has been making the rounds around the gamedev community. While the article provides an in-depth analysis, its a bit easy to miss the point and exert the wrong conclusions from it. As such, and in many cases, users unfamiliar with Godot internals have used it points such as following:

  • Godot C# support is inefficient
  • Godot API and binding system is designed around GDScript
  • Godot is not production ready

In this brief article, I will shed a bit more light about how the Godot binding system works and some detail on the Godot