This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools"> | |
| <uses-feature android:glEsVersion="0x00020000" android:required="true" /> | |
| <!-- Add this for apps targeting Android 13 or higher & GMA SDK version 20.3.0 or lower --> | |
| <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> | |
| <application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cassert> | |
| #include <memory> | |
| #include <string> | |
| struct Datas { | |
| std::string name; | |
| Datas() = default; | |
| explicit Datas(const std::string& vName) : name(vName) {} | |
| virtual ~Datas() = default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Latency Comparison Numbers | |
| -------------------------- | |
| L1 cache reference/hit 1.5 ns 4 cycles | |
| Floating-point add/mult/FMA operation 1.5 ns 4 cycles | |
| L2 cache reference/hit 5 ns 12 ~ 17 cycles | |
| Branch mispredict 6 ns 15 ~ 20 cycles | |
| L3 cache hit (unshared cache line) 16 ns 42 cycles | |
| L3 cache hit (shared line in another core) 25 ns 65 cycles | |
| Mutex lock/unlock 25 ns | |
| L3 cache hit (modified in another core) 29 ns 75 cycles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Input | |
| newhost=$1 | |
| applicationStart=$2 | |
| ### | |
| # Functions | |
| ### | |
| updateBaseInstall() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cmath> | |
| #include <iostream> | |
| #include <cstdint> | |
| template<typename T> | |
| void printBin(const T& t){ | |
| size_t nBytes=sizeof(T); | |
| char* rawPtr((char*)(&t)); | |
| for(size_t byte=0; byte<nBytes; byte++){ | |
| for(size_t bit=0; bit<8; bit++){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| #include <cstdio> | |
| #include <cassert> | |
| #include <fstream> | |
| #include <iostream> | |
| #include <cryptopp/sha.h> | |
| #include <boost/algorithm/hex.hpp> | |
| void addFileToSha(const std::string& vFilePathName, CryptoPP::SHA1& vShaRef) { | |
| std::ifstream file(vFilePathName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| #include <cstdio> | |
| #include <cassert> | |
| #include <fstream> | |
| #include <iostream> | |
| #include <cryptopp/sha.h> | |
| #include <boost/algorithm/hex.hpp> | |
| void addFileToSha(const std::string& vFilePathName, CryptoPP::SHA1& vShaRef) { | |
| std::ifstream file; |
The core of most real-time fluid simulators, like the one in EmberGen, are based on the "Stable Fluids" algorithm by Jos Stam, which to my knowledge was first presented at SIGGRAPH '99. This is a post about one part of this algorithm that's often underestimated: Projection
MG4_F32.mp4
The Stable Fluids algorithm solves a subset of the famous "Navier Stokes equations", which describe how fluids interact and move. In particular, it typically solves what's called the "incompressible Euler equations", where viscous forces are often ignored.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bl_info = { | |
| "name": "Mercator Project", | |
| "author": "batFINGER", | |
| "version": (1, 0), | |
| "blender": (2, 79, 0), | |
| "location": "View3D > Mesh > UV UnWrap > Mercator Project", | |
| "description": "UV Mercator Projection", | |
| "warning": "", | |
| "wiki_url": "", | |
| "category": "UV", |
NewerOlder