Search found 4 matches

by Tebron
Fri Sep 28, 2018 9:55 am
Forum: ESP-IDF
Topic: slow processing
Replies: 6
Views: 6658

Re: slow processing

No, i dont use that, but that code will be written later. I just wanted test this part.
I did not know the compailer can remove code because that has no effect.

Thank You for the fast answers
by Tebron
Fri Sep 28, 2018 5:24 am
Forum: ESP-IDF
Topic: slow processing
Replies: 6
Views: 6658

Re: slow processing

This is a multi-file project, i post the file with the problem. This is in the main file where the task is called: xTaskCreatePinnedToCore(&img_prc,"img_prc",4096,NULL,5,NULL,1); And this is the actual code static const char* TAG = "Image process: "; typedef struct { vospi_frame_t frames[9]; } b_fra...
by Tebron
Thu Sep 27, 2018 10:21 am
Forum: ESP-IDF
Topic: slow processing
Replies: 6
Views: 6658

Re: slow processing

I use 4 task, 3 of them running on CPU0 the last on the CPU1. This is the problematic task. while(1){ if(statement) //~every 100ms for(0-80){ for(0-60){ for(0-var){ if(statement) var++ var1=var2 } } } if(win_max_alrm==10){ counter++; } } This is a long cycle but ther are just a few assigment and inc...
by Tebron
Thu Sep 27, 2018 6:58 am
Forum: ESP-IDF
Topic: slow processing
Replies: 6
Views: 6658

slow processing

Hi, I have a problem with this part of code: if(win_max_alrm==10){ counter++; } It is a part of a larger code and when i run it, a process time is 35ms, BUT if i comment a counter++; command then a process time is 4ms. And it is independent that the if is true or false. What can cause this type of i...