Skip to content

Instantly share code, notes, and snippets.

View cheako's full-sized avatar

Michael Mestnik cheako

  • Twin Cities Minnesota, USA -- CST
View GitHub Profile
@cheako
cheako / log.txt
Created October 14, 2023 01:07
Starfield on i915 a770, oct 13 best setup to date
[src/handlers/pipelines.rs:127] thread::current().id().as_u64() = 8
[src/handlers/pipelines.rs:135]
[src/handlers/pipelines.rs:126] unsafe {
dbg!(thread :: current().id().as_u64());
super::DEVICE.read().unwrap().get(&device).unwrap().device.create_compute_pipelines(pipeline_cache,
create_infos, { dbg!(); p_allocator.as_ref() })
} = Ok(
[
0x7fd9ec000c80,
],
@cheako
cheako / git.diff
Last active May 25, 2020 15:55
OTTD train positions?
Edit: Now show the change in direction.
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 5d02764..3fb4652 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -3087,6 +3087,8 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
Train *prev;
bool direction_changed = false; // has direction of any part changed?
@cheako
cheako / Demo.cpp
Created November 6, 2018 17:28
Strange error from VSCode 1.23.1.
#include <Demo.hpp>
struct Class::Item
{
int a;
};
Class::Class() : m_item(new Class::Item()){};
/* _new_:
* a value of type "Class::Item *" cannot be used to initialize an entity of type "std::unique_ptr<Class::Item, std::default_delete<Class::Item>> *"
/*!
* @brief translate existing transform matrix by v vector
* and stores result in same matrix
*
* @param[in, out] m affine transfrom
* @param[in] v translate vector [x, y, z]
*/
CGLM_INLINE
void
glm_translate(mat4 m, vec3 v) {