Skip to content

Instantly share code, notes, and snippets.

View loyio's full-sized avatar
:shipit:
Focusing

Loyio Hex loyio

:shipit:
Focusing
View GitHub Profile
@loyio
loyio / FpsDisplay.cs
Created January 14, 2024 02:35
Unity Fps Display Script
using UnityEngine;
public class FpsDisplay : MonoBehaviour
{
float _deltaTime = 0.0f;
void Update()
{
_deltaTime += (Time.unscaledDeltaTime - _deltaTime) * 0.1f;
}

Keybase proof

I hereby claim:

  • I am loyio on github.
  • I am loyio (https://keybase.io/loyio) on keybase.
  • I have a public key ASBdvq0nBisbjB-eSCbjPpUs9vPQtnyzmDaQdbSNctF0Nwo

To claim this, I am signing this object:

@loyio
loyio / SequenceListInsert.cpp
Created March 29, 2021 00:49
SequenceList Insert
Status ListInsert_Sq(SqList *L, int i, LElemType_Sq e)
{
LElemType_Sq *newbase;
LElemType_Sq *p, *q;
if(i<1 || i>(*L).length+1)
return ERROR;
if((*L).length >= (*L).listsize)
{