Skip to content

Instantly share code, notes, and snippets.

using System;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
public class ScrollIndexCallback1 : MonoBehaviour
{
private static readonly int MainTex = Shader.PropertyToID("_MainTex");
using System;
using System.Collections;
using System.Collections.Generic;
using RSG;
using UnityEngine;
using UnityEngine.Assertions;
using System.IO;
using System.Runtime.InteropServices;
using Object = UnityEngine.Object;
using System.Text;
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingApplicationException(string message) {
SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve()));
}
public void RunBad()
{
var sw = new Stopwatch();
int ticks = 0;
while (true)
{
sw.Restart();
@ifshuaishuai
ifshuaishuai / build_luajit_simulator.sh
Last active February 1, 2019 03:44
xLua luajit compile
#!/bin/bash
# LuaJIT 的源码路径
LUAJIT=./LuaJIT-2.1.0-beta3
XCODEPATH=`xcode-select -print-path`
DEVDIR=$XCODEPATH/Platforms
IOSVER=iPhoneOS.sdk
SIMVER=iPhoneSimulator.sdk
@ifshuaishuai
ifshuaishuai / ProfilerTester.cs
Created June 2, 2016 15:15
unity 5.x Profiler no label
using UnityEngine;
using System.Collections;
public class ProfilerTester : MonoBehaviour
{
void Update()
{
Profiler.BeginSample("AAATest");
float sum = ExpensiveOperation();