forked from cafeberry/cafeberry
revert perf + fix: windows performance optimizations + x360 fixes + ps3 hdd corruption fix (#27)
revert perf + fix: windows performance optimizations + x360 fixes + ps3 hdd corruption fix (#27) windows optimizations include: - adding WPO/LTCG - fixing potential memory leaks - reducing unneeded busy waits xbox 360 fixes include: - all item names displaying as black - adding newer dlcs crashing game ps3 fix was that, when holding the ps button, it'd corrupt the hdd. NEEDS TESTING! just a guess fix since I don't have a PS3. --------- Co-authored-by: pieeebot <piebot00@gmail.com> Co-authored-by: piebot <piebot00@gmail.com> Co-authored-by: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com> Co-authored-by: str1k3r <1+str1k3r@noreply.localhost> Co-authored-by: pieeebot <10+pieeebot@noreply.neolegacy.dev> Co-authored-by: qloak <53+qloak@noreply.neolegacy.dev> Reviewed-on: cafeberry/cafeberry#27 Co-authored-by: qloak <realminecart@gmail.com>
This commit is contained in:
@@ -145,11 +145,10 @@ void EnderDragonRenderer::render(shared_ptr<Entity> _mob, double x, double y, do
|
||||
int steps = 8;
|
||||
for (int i = 0; i <= steps; i++)
|
||||
{
|
||||
int idx = i % steps;
|
||||
double d = idx * PI * 2 / steps;
|
||||
float s = sin(d) * 0.75f;
|
||||
float c = cos(d) * 0.75f;
|
||||
float u = idx * 1.0f / steps;
|
||||
double d=i % steps * PI * 2 / steps;
|
||||
float s = sin(i % steps * PI * 2 / steps) * 0.75f;
|
||||
float c = cos(i % steps * PI * 2 / steps) * 0.75f;
|
||||
float u = i % steps * 1.0f / steps;
|
||||
//t->color(0x000000);
|
||||
t->vertexUV(s * 0.2f, c * 0.2f, 0, u, v1);
|
||||
//t->color(0xffffff);
|
||||
|
||||
Reference in New Issue
Block a user