Compare commits

..

2 Commits

Author SHA1 Message Date
f01d539489 setup: made in easier to toggle profiling 2025-12-23 11:30:45 +01:00
8fffe4d8e3 fix: reverted optimization 2025-12-23 11:30:08 +01:00
3 changed files with 4 additions and 4 deletions

View File

@@ -12,3 +12,4 @@ set (CMAKE_CXX_STANDARD 20)
add_executable(one main.cpp)
target_link_libraries(one m Qt6::Widgets Qt6::Gui)
# target_link_libraries(one m)

View File

@@ -89,7 +89,6 @@ int main(int argc, char *argv[]) {
begin)
.count()
<< "[ms]" << std::endl;
QApplication a(argc, argv);
uint8_t *pixel = new uint8_t[64 * 64 * 3];
/*for (int i = 0; i < 64 * 64 * 3; i++) {
@@ -115,6 +114,7 @@ int main(int argc, char *argv[]) {
}
}
}
QApplication a(argc, argv);
QWidget widget;
widget.setAutoFillBackground(true);
widget.setGeometry(0, 0, 500, 500);

View File

@@ -85,12 +85,11 @@ class Renderer {
for (int x = startX; x < endX; x++) {
for (int y = startY; y < endY; y++) {
testP.calcBarycentric(pos);
if (testP.contains(pos)) {
if (testP.depContains(pos)) {
if (testP.small)
continue;
testP.calcBarycentric(pos);
decimal depth = testP.calcDepth();
if (depth < target->getDepth(x, y)) {
// std::cout << factors << std::endl;